sourceregistry

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVarService

type EnvVarService struct {
	// contains filtered or unexported fields
}

func (EnvVarService) IsSourceRegistered

func (evs EnvVarService) IsSourceRegistered(_ context.Context, src Source) (bool, error)

IsSourceRegistered implements Service.

type Service

type Service interface {
	IsSourceRegistered(context.Context, Source) (bool, error)
}

Service define a source registry management service.

func ProvideEnvVarService

func ProvideEnvVarService(logger log.Logger) Service

ProvideEnvVarService is a wire provider for source registry Service.

type Source

type Source interface {
	SourceString() string
}

Source define a unique source identifier. It can be a domain name, a UUID or anything that can be represented as a string.

Jump to

Keyboard shortcuts

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