Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APICompositionFunc ¶
APICompositionFunc is the api root composition func in which specify API configuration. Here the developer can create its routes and manually dependency wire into controllers and services.2
type APIConf ¶
type APIConf struct { Endpoint struct { Port int BaseRoutingPath string } Security struct { Enabled bool Jwt struct { Secret string Expiration struct { Enabled bool Minutes int32 } } } }
APIConf is the API Gear configuration structure.
type APIGear ¶
APIGear is the gear structure derived from the Machinery BaseGear.
func NewAPIGear ¶
func NewAPIGear(uname string, compose APICompositionFunc) *APIGear
NewAPIGear creates a new APIGear instance.
func (*APIGear) Configure ¶
func (apigear *APIGear) Configure(config interface{})
Configure get the configuration map and struct it into APIConf structure.
Click to show internal directories.
Click to hide internal directories.