server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogEntrySetField

func LogEntrySetField(ctx context.Context, key string, value interface{})

LogEntrySetField will set a new field on a log entry

func LogEntrySetFields

func LogEntrySetFields(ctx context.Context, fields map[string]interface{})

LogEntrySetFields will set a map of key/value pairs on a log entry

Types

type Response added in v0.7.0

type Response struct {
	Success bool
	Error   error
	User    *skillz.User
	Users   []*skillz.User
}

type Server added in v0.7.0

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

func New

func New(logger *logrus.Logger, newrelic *newrelic.Application, auth auth.API, user user.API) *Server

func (*Server) GracefullyShutdown added in v0.7.0

func (s *Server) GracefullyShutdown(ctx context.Context) error

GracefullyShutdown gracefully shuts down the HTTP API.

func (*Server) Start added in v0.7.0

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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