server

package
v0.0.0-...-4168419 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

START: types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

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

START: newgrpcserver_before_auth START: newgrpcserver func NewGRPCServer(config *Config, opts ...grpc.ServerOption) (*grpc.Server, func(context.Context) error, error) {

Types

type Authorizer

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

START: authorizer

type CommitLog

type CommitLog interface {
	Append(*api.Record) (uint64, error)
	Read(uint64) (*api.Record, error)
}

START: commitlog

type Config

type Config struct {
	CommitLog   CommitLog
	Authorizer  Authorizer
	GetServerer GetServerer
}

START: config_authorizer

type GetServerer

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

Jump to

Keyboard shortcuts

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