registrator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = data.ModuleName + "-registrar"

Variables

This section is empty.

Functions

func NewRegistrarAsInterface

func NewRegistrarAsInterface(cfg config.Config, _ context.Context) interface{}

func Run

func Run(ctx context.Context, cfg config.Config)

func RunRegistrarAsInterface

func RunRegistrarAsInterface(structure interface{}, ctx context.Context)

Types

type Registrar

type Registrar interface {
	Run(ctx context.Context)
	UnregisterModule() error
}

func NewRegistrar

func NewRegistrar(cfg config.Config) Registrar

Jump to

Keyboard shortcuts

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