Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Country ¶
type Country interface { Fetch(id string) (*CountryType, error) FetchByName(name string) (*CountryType, error) FetchAll() ([]*CountryType, error) }
Country for fetching data interface - implementation is in repository
type CountryFieldResolver ¶
type CountryFieldResolver interface { GetByID(p graphql.ResolveParams) (interface{}, error) List(p graphql.ResolveParams) (interface{}, error) }
CountryFieldResolver for resolver of schema interface
func NewCountryFieldResolve ¶
func NewCountryFieldResolve( logger *zap.Logger, countryRepo Country, ) CountryFieldResolver
NewCountryFieldResolve returns CountryFieldResolver interface
type CountryType ¶
type CountryType struct { ID int `json:"id" boil:"id"` Code string `json:"country_code" boil:"country_code"` Name string `json:"name" boil:"name"` }
CountryType is type of country
Click to show internal directories.
Click to hide internal directories.