server

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CherryServer

type CherryServer struct {
	Store store.DataStore
	ErrorHandler
}

CherryServer a handler creator for an http server

func (*CherryServer) CreateHandler

func (c *CherryServer) CreateHandler() http.Handler

CreateHandler create an http.Handler

type ErrorHandler

type ErrorHandler interface {
	Error(error)
}

ErrorHandler a handler for errors that can choose to exit or not if it wants, it can exit entirely

type ErrorResponse

type ErrorResponse struct {
	Response *http.Response
	Code     int    `json:"code"`
	Message  string `json:"message"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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