handlers

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Devices

type Devices struct {
	messages.UnimplementedDevicesServer
	// contains filtered or unexported fields
}

func NewDevices

func NewDevices(deviceService *service.Device, prometheusMetricsRegister metrics.PrometheusMetricsRegisterable) *Devices

func (*Devices) GetDevices

func (*Devices) UpdatePrivateKey added in v0.2.0

type Peers

type Peers struct {
	messages.UnimplementedPeersServer
	// contains filtered or unexported fields
}

func NewPeers

func NewPeers(
	peerService *service.Peer,
	peersRegistrationHooks []PeersRegistrationHook,
	peersDeletionHooks []PeersDeletionHook,
	prometheusMetricsRegister metrics.PrometheusMetricsRegisterable,
) *Peers

func (*Peers) DeletePeers

func (*Peers) GetPeers

func (*Peers) RegisterPeers

type PeersDeletionHook

type PeersDeletionHook interface {
	Do(ctx context.Context, req *messages.DeletePeersRequest) error
}

PeersDeletionHook is an interface that defines the hook function to do when the peers' deletion has done successfully.

type PeersRegistrationHook

type PeersRegistrationHook interface {
	Do(ctx context.Context, req *messages.RegisterPeersRequest) error
}

PeersRegistrationHook is an interface that defines the hook function to do when the peers' registration has done successfully.

Jump to

Keyboard shortcuts

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