Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReadTimeout = 15 * time.Second WriteTimeout = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoConfig ¶
type EchoConfig struct { Port string `mapstructure:"port" validate:"required"` Development bool `mapstructure:"development"` BasePath string `mapstructure:"basePath" validate:"required"` DebugErrorsResponse bool `mapstructure:"debugErrorsResponse"` IgnoreLogUrls []string `mapstructure:"ignoreLogUrls"` Timeout int `mapstructure:"timeout"` Host string `mapstructure:"host"` }
type EchoServer ¶
type EchoServer struct {
// contains filtered or unexported fields
}
func NewEchoServer ¶
func NewEchoServer(conf *EchoConfig, log logger.ILogger, useCase usecase.RewardUseCase) *EchoServer
func (*EchoServer) Start ¶
func (s *EchoServer) Start()
Click to show internal directories.
Click to hide internal directories.