http

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server serve trade logs through http endpoint.

func NewServer

func NewServer(storage storage.Interface, host string, sugar *zap.SugaredLogger, sett core.Interface,
	options ...ServerOption) *Server

NewServer returns an instance of HttpApi to serve trade logs.

func (*Server) Start

func (sv *Server) Start() error

Start running http server to serve trade logs data

type ServerOption

type ServerOption func(server *Server)

ServerOption configures the behaviour of Server constructor.

func WithApplicationNames

func WithApplicationNames(an lipappnames.AddrToAppName) ServerOption

WithApplicationNames configures the Server instance to use appname integration.

func WithUserProfile

func WithUserProfile(up userprofile.Interface) ServerOption

WithUserProfile configures the Server instance to use user profile lookup

Jump to

Keyboard shortcuts

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