Documentation ¶
Index ¶
- func CommonMiddleware(next http.Handler) http.Handler
- type HealthCheckRoute
- type MessagesRoute
- type ServerConfig
- type StartServerCommand
- func (fc *StartServerCommand) Address() string
- func (fc *StartServerCommand) Flags() *flag.FlagSet
- func (fc *StartServerCommand) HelpString() string
- func (fc *StartServerCommand) Name() string
- func (fc *StartServerCommand) Port() string
- func (fc *StartServerCommand) Run(ctx context.Context, args []string) error
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthCheckRoute ¶
type HealthCheckRoute struct { }
func (HealthCheckRoute) GetHealthCheck ¶
func (hcr HealthCheckRoute) GetHealthCheck() appHandler
GetHealthCheck returns OK when is called
func (HealthCheckRoute) SetupRoutes ¶
func (hcr HealthCheckRoute) SetupRoutes(routePath string, router *mux.Router)
type MessagesRoute ¶
type MessagesRoute struct {
// contains filtered or unexported fields
}
func (MessagesRoute) GetImage ¶
func (m MessagesRoute) GetImage() appHandler
GetImage gets the image based on the provided name from the cloud storage
func (MessagesRoute) PostMessage ¶
func (m MessagesRoute) PostMessage() appHandler
PostMessage post a message to a specific social channel
func (MessagesRoute) SetupRoutes ¶
func (m MessagesRoute) SetupRoutes(routePath string, router *mux.Router)
type StartServerCommand ¶
type StartServerCommand struct {
// contains filtered or unexported fields
}
StartServerCommand is struct for info required to start an http server
func (*StartServerCommand) Address ¶
func (fc *StartServerCommand) Address() string
func (*StartServerCommand) Flags ¶
func (fc *StartServerCommand) Flags() *flag.FlagSet
Flags returns the flag sets
func (*StartServerCommand) HelpString ¶
func (fc *StartServerCommand) HelpString() string
HelpString is the string shown as usage
func (*StartServerCommand) Port ¶
func (fc *StartServerCommand) Port() string
type StorageConfig ¶
type StorageConfig struct {
BucketName string
}
StorageConfig stores information required for storage service
Click to show internal directories.
Click to hide internal directories.