Documentation ¶
Index ¶
- type ApiService
- func (server *ApiService) DynamoServices(db dboperations.IDbOperations, c *fiber.Ctx) *omnitruck.DynamoServices
- func (server *ApiService) HealthCheck(c *fiber.Ctx) error
- func (server *ApiService) Initialize(c Config) *ApiService
- func (server *ApiService) JSON(c *fiber.Ctx, data interface{}) error
- func (server *ApiService) Omnitruck(c *fiber.Ctx) *omnitruck.Omnitruck
- func (server *ApiService) PlatformServices(c *fiber.Ctx) *omnitruck.PlatformServices
- func (server *ApiService) ReplicatedService(config config.ReplicatedConfig, log logrus.Logger) replicated.IReplicated
- func (server *ApiService) SendError(c *fiber.Ctx, request *clients.Request) error
- func (server *ApiService) SendErrorResponse(c *fiber.Ctx, code int, msg string) error
- func (server *ApiService) SendResponse(c *fiber.Ctx, data interface{}) error
- func (server *ApiService) Start(wg *sync.WaitGroup) error
- func (server *ApiService) StartService()
- func (server *ApiService) ValidateRequest(params *omnitruck.RequestParams, c *fiber.Ctx) (error, bool)
- type ApiType
- type Config
- type ErrorResponse
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶
type ApiService struct { sync.Mutex Config Config Log *log.Entry App *fiber.App Validator omnitruck.RequestValidator Mode ApiType DatabaseService dboperations.IDbOperations TemplateRenderer template.TemplateRender Replicated replicated.IReplicated LicenseClient clients.ILicense }
func New ¶
func New(c Config) *ApiService
func (*ApiService) DynamoServices ¶
func (server *ApiService) DynamoServices(db dboperations.IDbOperations, c *fiber.Ctx) *omnitruck.DynamoServices
func (*ApiService) HealthCheck ¶
func (server *ApiService) HealthCheck(c *fiber.Ctx) error
func (*ApiService) Initialize ¶
func (server *ApiService) Initialize(c Config) *ApiService
func (*ApiService) Omnitruck ¶
func (server *ApiService) Omnitruck(c *fiber.Ctx) *omnitruck.Omnitruck
func (*ApiService) PlatformServices ¶
func (server *ApiService) PlatformServices(c *fiber.Ctx) *omnitruck.PlatformServices
func (*ApiService) ReplicatedService ¶
func (server *ApiService) ReplicatedService(config config.ReplicatedConfig, log logrus.Logger) replicated.IReplicated
func (*ApiService) SendErrorResponse ¶
func (*ApiService) SendResponse ¶
func (server *ApiService) SendResponse(c *fiber.Ctx, data interface{}) error
func (*ApiService) StartService ¶
func (server *ApiService) StartService()
func (*ApiService) ValidateRequest ¶
func (server *ApiService) ValidateRequest(params *omnitruck.RequestParams, c *fiber.Ctx) (error, bool)
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.