Versions in this module Expand all Collapse all v0 v0.0.2 Nov 1, 2020 v0.0.1 Oct 19, 2020 Changes in this version type Service + func (service *Service) SubscribeToService(sub ServiceContract) v0.0.0 Oct 15, 2020 Changes in this version + const Binary + const DELETE + const DefaultBodyDataType + const DefaultHost + const DefaultKey + const DefaultNamespace + const DefaultPort + const DefaultRouteMethod + const DefaultVersion + const Form + const GET + const HTTP + const HTTPS + const JSON + const POST + const PUT + const RouteNotFoundError + type Context struct + ServiceClients []ServiceClient + func (ctx *Context) Payload() (Payload, error) + func (ctx *Context) ServiceClient(sub ServiceContract) *ServiceClient + type Contract struct + Services []ServiceContract + type DataHandlerConfig struct + BodyType DataType + UserValueKey string + type DataType int + type Method string + type Payload interface + type RequestHandler func(ctx *Context) + type Route struct + DataHandler fastalice.Constructor + Middlewares []fastalice.Constructor + RequestHandler RequestHandler + type RouteContract struct + Data interface{} + DataHandlerConfig DataHandlerConfig + Description string + Label string + Method Method + Path string + func (route *RouteContract) DataType() DataType + type Service struct + func (service *Service) AddRoute(route *Route) + func (service *Service) SetupRoute(label string, endpoint RequestHandler, middlewares []fastalice.Constructor, ...) *Route + func (service *Service) Start() + func (service *Service) Status() *ServiceStatus + func (service *Service) Stop() error + type ServiceClient struct + func (sc *ServiceClient) SendRequest(routeContract RouteContract, payload ServiceRequest) (*fasthttp.Response, error) + type ServiceContract struct + Description string + Host string + Label string + Namespace string + Port int + Protocol protocol + RoutesContracts []RouteContract + Subscriptions []ServiceContract + Version string + func (sc *ServiceContract) RouteContractByLabel(label string) *RouteContract + func (sc *ServiceContract) RouteUrl(label string) (string, error) + func (sc *ServiceContract) Suffix() string + type ServiceProvider interface + Start func() + Status func() *ServiceStatus + Stop func() error + type ServiceRequest struct + Body Payload + DataType DataType + QueryParams map[string]string + RouteParams map[string]string + type ServiceStatus struct + Address net.Addr + IsRunning bool + RegisteredRoutes int