server

package
v0.0.0-...-42ea651 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestIDContextKey contextKey = iota
	WaitContextKey      contextKey = iota
	DatastoreContextKey contextKey = iota
)
View Source
const DefaultPageLimit = 10

Variables

This section is empty.

Functions

func MiddlewareRedisDatastore

func MiddlewareRedisDatastore(storeOptions *datastore.RedisOptions) mux.MiddlewareFunc

func MiddlewareRequestID

func MiddlewareRequestID(next http.Handler) http.Handler

Types

type Server

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

func New

func New(port int, storeOptions *datastore.RedisOptions) (*Server, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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