store

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddService

func AddService(s *http.Server, name string, init func(), exit func())

func CloseService

func CloseService()

CloseService close the services directly

func ListServiceListenersFile

func ListServiceListenersFile() ([]*os.File, error)

func RegisterOnStateChanged

func RegisterOnStateChanged(f OnStateChanged)

func SetMosnState

func SetMosnState(s State)

func SetStateCode

func SetStateCode(s State)

func StartService

func StartService(inheritListeners []net.Listener) error

func StopService

func StopService()

Types

type OnStateChanged

type OnStateChanged func(s State)

type State

type State int
const (
	Init State = iota
	Running
	Active_Reconfiguring
	Passive_Reconfiguring
)

func GetMosnState

func GetMosnState() State

Jump to

Keyboard shortcuts

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