daemon

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadHeaderTimeout    = 5 * time.Second
	ReadTimeout          = 10 * time.Second
	WriteTimeout         = 10 * time.Second
	IdleTimeout          = 120 * time.Second
	ServerLogDomain      = "server daemon"
	AuthzRefreshInterval = 120 * time.Second
)

Variables

This section is empty.

Functions

func SetupSwagger

func SetupSwagger() (*openapi3.T, error)

SetupSwagger loads the swagger file

Types

type CmkServer

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

func NewCMKServer

func NewCMKServer(
	ctx context.Context,
	cfg *config.Config,
	dbCon *multitenancy.DB,
) (*CmkServer, error)

func (*CmkServer) Close

func (s *CmkServer) Close(ctx context.Context) error

func (*CmkServer) Start

func (s *CmkServer) Start(ctx context.Context) error

type ServeMux

type ServeMux struct {
	BaseURL string
	// contains filtered or unexported fields
}

func NewServeMux

func NewServeMux(baseURL string) *ServeMux

func (*ServeMux) HandleFunc

func (m *ServeMux) HandleFunc(
	pattern string,
	handler func(http.ResponseWriter, *http.Request),
)

func (*ServeMux) ServeHTTP

func (m *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Server

type Server interface {
	Start(ctx context.Context) error
	Close() error
}

Jump to

Keyboard shortcuts

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