handler

package
v1.0.1003 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	listenerProto.UnimplementedListenerServer
	listenerProto.UnimplementedEncryptionServer
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewServices

func NewServices(lo interfaces.Listener, keyStorage interfaces.KeyStorage, sessionTimeout time.Duration) *Services

func (*Services) AllowMethod

func (c *Services) AllowMethod(method string) (m []interfaces.Method)

func (*Services) CurrentStatus

func (c *Services) CurrentStatus(ctx context.Context, req *listenerProto.MonitorRequest) (res *listenerProto.MonitorResponse, err error)

CurrentStatus implement services.Listener/CurrentStatus

func (*Services) Exchange

Exchange - implement for encryption services public and private key exchange

func (*Services) GetServiceDesc

func (c *Services) GetServiceDesc() []*grpc.ServiceDesc

func (*Services) ListServices

func (c *Services) ListServices(ctx context.Context, req *emptypb.Empty) (res *listenerProto.ServicesResponse, err error)

ListServices implement services.Listener/ListServices

func (*Services) Monitor

Monitor implement services.Listener/Monitor

Jump to

Keyboard shortcuts

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