server

package
v0.0.0-...-fe9e4bd Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(config *Config, grpcOpts ...grpc.ServerOption) (*grpc.Server, error)

Types

type Authorizer

type Authorizer interface {
	Authorize(subject, object, action string) error
}

type Config

type Config struct {
	DB           engine.Storage[engine.DistDB]
	Authorizer   Authorizer
	ServerGetter ServerGetter
}

type ServerGetter

type ServerGetter interface {
	GetServers() ([]*api.Server, error)
}

Jump to

Keyboard shortcuts

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