handler

package
v0.0.0-...-0bd6e25 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package handler is defining an entry point to interact with the configuration Engine.

Index

Constants

View Source
const (
	Id              = "dev_config_handler" // only one instance of config Engine can be in the service
	ServiceById     = "service"
	ServiceByUrl    = "service-by-url"
	ServiceExist    = "service-exist"
	SetService      = "set-service"
	ParamExist      = "param-exist"
	StringParam     = "string-param"
	Uint64Param     = "uint64-param"
	BoolParam       = "bool-param"
	GenerateHandler = "generate-handler"
	SetDefaultParam = "set-default"
	GenerateService = "generate-service"
)

Variables

This section is empty.

Functions

func SocketConfig

func SocketConfig() *handlerConfig.Handler

SocketConfig parameter of the handler

Types

type Handler

type Handler struct {
	Engine *engine.Dev // todo make it private, for now it's used in the tests of other packages
	// contains filtered or unexported fields
}

func New

func New() (*Handler, error)

New handler of the config. The handler is initialized for use.

func (*Handler) Start

func (handler *Handler) Start() error

Jump to

Keyboard shortcuts

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