server

package
v0.0.0-...-ab6c89e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 7 Imported by: 0

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()

type Server

type Server interface {
	Start(ctx context.Context) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL