Documentation ¶
Overview ¶
Code generated by sysl DO NOT EDIT.
Code generated by sysl DO NOT EDIT.
Code generated by sysl DO NOT EDIT.
Code generated by sysl DO NOT EDIT.
Code generated by sysl DO NOT EDIT.
Index ¶
- func NewServiceRouter(gc core.RestGenCallback, svcHandler *ServiceHandler) handlerinitialiser.HandlerInitialiser
- type Callback
- func (c Callback) AddMiddleware(ctx context.Context, r chi.Router)
- func (c Callback) BasePath() string
- func (c Callback) Config() interface{}
- func (c Callback) DownstreamTimeoutContext(ctx context.Context) (context.Context, context.CancelFunc)
- func (c Callback) MapError(ctx context.Context, cause error) *common.HTTPError
- type Client
- type Company
- type Config
- type DefaultDbEndpointsImpl
- type Department
- type DownstreamConfig
- type GetCompanyLocationListClient
- type GetCompanyLocationListRequest
- type GetCompanyLocationResponse
- type Handler
- type Router
- type Service
- type ServiceHandler
- type ServiceInterface
- type ServiceRouter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceRouter ¶
func NewServiceRouter(gc core.RestGenCallback, svcHandler *ServiceHandler) handlerinitialiser.HandlerInitialiser
NewServiceRouter creates a new service router for DbEndpoints
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for DbEndpoints API
func (*Client) GetCompanyLocationList ¶
func (s *Client) GetCompanyLocationList(ctx context.Context, req *GetCompanyLocationListRequest) (*GetCompanyLocationResponse, error)
GetCompanyLocationList ...
type Company ¶
type Company struct { AbnNumber int64 `json:"abnNumber"` CompanyCountry string `json:"companyCountry"` CompanyName string `json:"companyName"` Departments []Department `json:"departments"` }
Company ...
type DefaultDbEndpointsImpl ¶
type DefaultDbEndpointsImpl struct { }
DefaultDbEndpointsImpl ...
func NewDefaultDbEndpointsImpl ¶
func NewDefaultDbEndpointsImpl() *DefaultDbEndpointsImpl
NewDefaultDbEndpointsImpl for DbEndpoints
func (*DefaultDbEndpointsImpl) GetCompanyLocationList ¶
func (s *DefaultDbEndpointsImpl) GetCompanyLocationList() func(ctx context.Context, req *GetCompanyLocationListRequest, client GetCompanyLocationListClient) (*GetCompanyLocationResponse, error)
type Department ¶
type Department struct { DeptId int64 `json:"deptId"` DeptLoc string `json:"deptLoc"` DeptName string `json:"deptName"` }
Department ...
type DownstreamConfig ¶
DownstreamConfig for DbEndpoints
type GetCompanyLocationListClient ¶
type GetCompanyLocationListClient struct { Conn *sql.Conn // contains filtered or unexported fields }
GetCompanyLocationList Client
type GetCompanyLocationListRequest ¶
GetCompanyLocationListRequest ...
type GetCompanyLocationResponse ¶
type GetCompanyLocationResponse struct { Companies []Company `json:"companies"` Message string `json:"message"` }
GetCompanyLocationResponse ...
func (*GetCompanyLocationResponse) Validate ¶
func (s *GetCompanyLocationResponse) Validate() error
*GetCompanyLocationResponse validator
type Handler ¶
type Handler interface {
GetCompanyLocationListHandler(w http.ResponseWriter, r *http.Request)
}
Handler interface for DbEndpoints
type Service ¶
type Service interface {
GetCompanyLocationList(ctx context.Context, req *GetCompanyLocationListRequest) (*GetCompanyLocationResponse, error)
}
Service interface for DbEndpoints
type ServiceHandler ¶
ServiceHandler for DbEndpoints API
func NewServiceHandler ¶
func NewServiceHandler(genCallback core.RestGenCallback, serviceInterface *ServiceInterface) *ServiceHandler
NewServiceHandler for DbEndpoints
func (*ServiceHandler) GetCompanyLocationListHandler ¶
func (s *ServiceHandler) GetCompanyLocationListHandler(w http.ResponseWriter, r *http.Request)
GetCompanyLocationListHandler ...
type ServiceInterface ¶
type ServiceInterface struct {
GetCompanyLocationList func(ctx context.Context, req *GetCompanyLocationListRequest, client GetCompanyLocationListClient) (*GetCompanyLocationResponse, error)
}
ServiceInterface for DbEndpoints
type ServiceRouter ¶
type ServiceRouter struct {
// contains filtered or unexported fields
}
ServiceRouter for DbEndpoints API
func (*ServiceRouter) WireRoutes ¶
func (s *ServiceRouter) WireRoutes(ctx context.Context, r chi.Router)
WireRoutes ...