compressor

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package compressor represents compressor client

Package compressor represents compressor client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Start(ctx context.Context) (<-chan error, error)
	Stop(context.Context) error
	GetVector(ctx context.Context, uuid string) (*payload.Backup_Vector, error)
	GetLocation(ctx context.Context, uuid string) ([]string, error)
	Register(ctx context.Context, vec *payload.Backup_Vector) error
	RegisterMultiple(ctx context.Context, vecs *payload.Backup_Vectors) error
	Remove(ctx context.Context, uuid string) error
	RemoveMultiple(ctx context.Context, uuids ...string) error
	RegisterIPs(ctx context.Context, ips []string) error
	RemoveIPs(ctx context.Context, ips []string) error
	GRPCClient() grpc.Client
}

func New

func New(opts ...Option) (c Client, err error)

type Option

type Option func(c *client) error

func WithClient

func WithClient(gc grpc.Client) Option

Jump to

Keyboard shortcuts

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