server

package
v0.0.0-...-54b9e33 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControlMiddleware

func NewControlMiddleware(catchAllHandler chevron.Handler) chevron.Middleware

Types

type BaseResource

type BaseResource struct {
	*chevron.EmptySpec
	HandlerSet handler.HandlerSet `service:"handler-set"`
	RequestLog request.Log        `service:"request-log"`
}

type CatchAllHandler

type CatchAllHandler struct{ *BaseResource }

func (*CatchAllHandler) Handle

func (r *CatchAllHandler) Handle(ctx context.Context, req *http.Request, logger nacelle.Logger) response.Response

type ClearResource

type ClearResource struct{ *BaseResource }

func (*ClearResource) Post

type Config

type Config struct {
	ConfigDir          string `env:"config_dir"`
	RequestLogCapacity int    `env:"request_log_capacity" default:"0"`
}

type ControlMiddleware

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

func (*ControlMiddleware) Convert

type RegisterResource

type RegisterResource struct{ *BaseResource }

func (*RegisterResource) Post

type RequestsResource

type RequestsResource struct{ *BaseResource }

func (*RequestsResource) Get

type SSEResource

type SSEResource struct {
	*BaseResource
	// contains filtered or unexported fields
}

func (*SSEResource) Get

func (*SSEResource) PostInject

func (r *SSEResource) PostInject() error

type Server

type Server struct {
	Services nacelle.ServiceContainer `service:"container"`
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Init

func (s *Server) Init(config nacelle.Config) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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