This commit is contained in:
Dominic Wong
2021-09-21 20:15:36 +01:00
parent 209283bcb7
commit a423dd9e99
3 changed files with 4 additions and 6 deletions

View File

@@ -42,9 +42,7 @@ func NewHolidaysEndpoints() []*api.Endpoint {
// Client API for Holidays service
type HolidaysService interface {
// Get the list of countries that are supported by this API
Countries(ctx context.Context, in *CountriesRequest, opts ...client.CallOption) (*CountriesResponse, error)
// List the holiday dates for a given country and year
List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error)
}
@@ -83,9 +81,7 @@ func (c *holidaysService) List(ctx context.Context, in *ListRequest, opts ...cli
// Server API for Holidays service
type HolidaysHandler interface {
// Get the list of countries that are supported by this API
Countries(context.Context, *CountriesRequest, *CountriesResponse) error
// List the holiday dates for a given country and year
List(context.Context, *ListRequest, *ListResponse) error
}