control

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package control implements the control.core microservice.

This microservice is created for the sake of generating the client API for the :888 control subscriptions. The microservice itself does nothing and should not be included in applications.

Index

Constants

View Source
const Hostname = "control.core"

Hostname is the default hostname of the microservice: control.core.

View Source
const SourceCodeSHA256 = "99f1b6f525cea3071e98c57bb7a79b7e7d9d199076a8ea8e4b16b521f8525d2d"
View Source
const Timestamp = "2024-07-14T02:54:31.508607Z"
View Source
const Version = 170

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock = intermediate.Mock

Mock is a mockable version of the control.core microservice, allowing functions, event sinks and web handlers to be mocked.

func NewMock

func NewMock() *Mock

New creates a new mockable version of the microservice.

type Service

type Service struct {
	*intermediate.Intermediate // DO NOT REMOVE
}

Service implements the control.core microservice.

This microservice is created for the sake of generating the client API for the :888 control subscriptions. The microservice itself does nothing and should not be included in applications.

func NewService

func NewService() *Service

NewService creates a new control.core microservice.

func (*Service) ConfigRefresh

func (svc *Service) ConfigRefresh(ctx context.Context) (err error)

ConfigRefresh pulls the latest config values from the configurator service.

func (*Service) Init

func (svc *Service) Init(initializer func(svc *Service)) *Service

Init enables a single-statement pattern for initializing the microservice.

svc.Init(func(svc Service) {
	svc.SetGreeting("Hello")
})

func (*Service) OnShutdown

func (svc *Service) OnShutdown(ctx context.Context) (err error)

OnShutdown is called when the microservice is shut down.

func (*Service) OnStartup

func (svc *Service) OnStartup(ctx context.Context) (err error)

OnStartup is called when the microservice is started up.

func (*Service) Ping

func (svc *Service) Ping(ctx context.Context) (pong int, err error)

Ping responds to the message with a pong.

func (*Service) Trace

func (svc *Service) Trace(ctx context.Context, id string) (err error)

Trace forces exporting the indicated tracing span.

Directories

Path Synopsis
app
Package controlapi implements the public API of the control.core microservice, including clients and data structures.
Package controlapi implements the public API of the control.core microservice, including clients and data structures.
Package intermediate serves as the foundation of the control.core microservice.
Package intermediate serves as the foundation of the control.core microservice.

Jump to

Keyboard shortcuts

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