service

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service added in v0.4.3

type Service struct {
	rpc.UnimplementedV1Server
	// contains filtered or unexported fields
}

Service instances serve GRPC requests.

func New

func New(b backend.Backend) *Service

New initalizes a new service

func (*Service) Acquire added in v0.4.3

func (s *Service) Acquire(ctx context.Context, req *rpc.AcquireRequest) (*rpc.AcquireResponse, error)

Acquire implements rpc.V1Server.

func (*Service) Done added in v0.4.3

func (s *Service) Done(ctx context.Context, req *rpc.DoneRequest) (*rpc.DoneResponse, error)

Done implements rpc.V1Server.

func (*Service) List added in v0.4.3

func (s *Service) List(req *rpc.ListRequest, srv rpc.V1_ListServer) error

List implements rpc.V1Server.

func (*Service) Ping added in v0.4.3

func (s *Service) Ping() error

Ping implements rpc.Pinger.

func (*Service) Renew added in v0.4.3

func (s *Service) Renew(ctx context.Context, req *rpc.RenewRequest) (*rpc.RenewResponse, error)

Renew implements rpc.V1Server.

Jump to

Keyboard shortcuts

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