server

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRouter

func DefaultRouter() *chi.Mux

func Execute

func Execute(app AppContext) error

Execute starts application and waits for ctrl+c

Types

type AppContext

type AppContext interface {
	Name() string
	Create(zerolog.Logger) error
	Delete() error
	Handler() http.Handler
}

type Context

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

Context stores local and aggregate stores

func Create

func Create(app AppContext) (*Context, error)

Create creates and sets up context, stores and starts HTTP Server

func (*Context) Create

func (ctx *Context) Create() error

Create App context creating router handling multiple REST API

func (*Context) Delete

func (ctx *Context) Delete() error

DeleteContext app context and HTTP Server

Jump to

Keyboard shortcuts

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