services

package
v0.0.0-...-f163260 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewService

func CreateNewService(name, path string, f interface{}) error

Types

type Service

type Service interface {
	Name() string
	Path() string
	GrpcServer(ctx context.Context, rpc *gorpc.Server)
	GrpcClient(ctx context.Context, rpc *gorpc.Client)
	SignedHash() []byte
	ACL(...map[string]string)
	StartServer() error
	StartClient() error
	Close()
}

type ServiceRepository

type ServiceRepository struct {
	Services map[string]Service
}
var Repo *ServiceRepository

Global variable for ServiceRepository

func NewServiceRepository

func NewServiceRepository() *ServiceRepository

type ServiceState

type ServiceState struct {
	Current  string
	Previous string
	Next     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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