httpserver

package
v0.0.0-...-4a4870b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress string `mapstructure:"listenAddress"`
	Endpoint      string `mapstructure:"endpoint"`
}

func (Config) Validate

func (c Config) Validate() (Config, error)

Validate checks that the configuration is valid.

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(config Config, logger log.Logger, errorHandler emperror.Handler) *Server

func (*Server) Run

func (s *Server) Run()

func (*Server) SetRequests

func (s *Server) SetRequests(requests request.Requests)

func (*Server) SetSQLClient

func (s *Server) SetSQLClient(client *sql.Client)

func (*Server) SetWorkload

func (s *Server) SetWorkload(workload workload.Workload)

Jump to

Keyboard shortcuts

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