domains

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DomainsItem gogarage.GarageItem = "domains"
)

Variables

View Source
var (
	ErrInvalidDomainType = errors.New("invalid domains type")
)

Functions

func GetByName

func GetByName(ctx context.Context, name string) interface{}

func RegistrateByName

func RegistrateByName(ctx context.Context, name string, val interface{}) context.Context

Types

type Domains

type Domains struct {
	sync.Map
}

func Create

func Create(ctx context.Context) (context.Context, *Domains)

func Get

func Get(ctx context.Context) *Domains

type IBaseDomain added in v0.5.0

type IBaseDomain interface {
	IBaseDomainStarter
	IBaseDomainShutdowner
}

type IBaseDomainShutdowner added in v0.5.0

type IBaseDomainShutdowner interface {
	Shutdown() error
}

type IBaseDomainStarter added in v0.5.0

type IBaseDomainStarter interface {
	Start() error
}

Jump to

Keyboard shortcuts

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