Skip to content

Commit

Permalink
added MethodGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
matryer committed Aug 16, 2024
1 parent 2c758d2 commit 247f45b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ func (s Service) MethodsByMetadata(field string) []MethodGroup {
return groups
}

// MethodGroup is a group of methods that share the same metadata.
type MethodGroup struct {
// Metadata are the metadata fields that are shared.
Metadata map[string]interface{}
// Methods are the methods that share the metadata.
Methods []Method
}

// Method describes a method that a Service can perform.
type Method struct {
Name string `json:"name"`
Expand Down

0 comments on commit 247f45b

Please sign in to comment.