server

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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