Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions testdata/catalogue.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type Campaign struct {

type CatalogueService struct{ zenrpc.Service }

// Validates the provided groups structure and returns true if valid.
func (s CatalogueService) First(groups Groups) (bool, error) {
return true, nil
}
Expand All @@ -38,6 +39,7 @@ func (s CatalogueService) Second(campaigns []Campaign) (bool, error) {
return true, nil
}

// Returns an empty campaign structure. Can be used as a template.
func (s CatalogueService) Third() (Campaign, error) {
return Campaign{}, nil
}