storageserver

package
v0.0.0-...-bbf0bf7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptorLogger

func InterceptorLogger(l zerolog.Logger) grpc_logging.Logger

InterceptorLogger adapts zerolog logger to interceptor logger.

func NewGRPCServer

func NewGRPCServer(id string, cs *consul.Consul, grpcOpts ...grpc.ServerOption) (*grpc.Server, error)

Types

type StorageServer

type StorageServer struct {
	Name     string
	ID       uuid.UUID
	Hostname string
	// contains filtered or unexported fields
}

func New

func (*StorageServer) GetHost

func (st *StorageServer) GetHost() string

func (*StorageServer) GetID

func (st *StorageServer) GetID() string

func (*StorageServer) GetMetadata

func (st *StorageServer) GetMetadata() map[string]string

func (*StorageServer) GetName

func (st *StorageServer) GetName() string

func (*StorageServer) GetPort

func (st *StorageServer) GetPort() string

func (*StorageServer) ShutdownGRPC

func (st *StorageServer) ShutdownGRPC() error

func (*StorageServer) ShutdownServer

func (st *StorageServer) ShutdownServer() error

func (*StorageServer) StartServer

func (st *StorageServer) StartServer(address string) error

Jump to

Keyboard shortcuts

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