clients

package
v0.1.3 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

View Source
var File_internal_clients_babysitter_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BabysitterClient

type BabysitterClient interface {
	CheckHealth(ctx context.Context, status *HealthCheck) (*protos.HealthReport, error)
	RunProfiling(context.Context, *protos.RunProfiling) (*protos.Profile, error)
}

BabysitterClient is a client to a babysitter.

type DistributorClient

type DistributorClient interface {
	Distribute(ctx context.Context, req *nanny.ApplicationDistributionRequest) error
	Cleanup(ctx context.Context, req *nanny.ApplicationCleanupRequest) error
	GetApplicationState(ctx context.Context, req *nanny.ApplicationStateAtDistributorRequest) (*nanny.ApplicationStateAtDistributor, error)
	GetPublicTrafficAssignment(ctx context.Context) (*nanny.TrafficAssignment, error)
	GetPrivateTrafficAssignment(ctx context.Context) (*nanny.TrafficAssignment, error)
	RunProfiling(context.Context, *protos.RunProfiling) (*protos.Profile, error)
}

DistributorClient is a client to a distributor.

type HealthCheck

type HealthCheck struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// Duration after which the check is declared as failed.
	Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

HealthCheck is a request to the babysitter to check the health status for a given colocation group replica.

func (*HealthCheck) Descriptor deprecated

func (*HealthCheck) Descriptor() ([]byte, []int)

Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.

func (*HealthCheck) GetAddr

func (x *HealthCheck) GetAddr() string

func (*HealthCheck) GetTimeout

func (x *HealthCheck) GetTimeout() *durationpb.Duration

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) ProtoReflect

func (x *HealthCheck) ProtoReflect() protoreflect.Message

func (*HealthCheck) Reset

func (x *HealthCheck) Reset()

func (*HealthCheck) String

func (x *HealthCheck) String() string

type ManagerClient

ManagerClient is a client to a manager.

TODO(mwhittaker): Refactor the manager so that it also implements the Client interface.

Jump to

Keyboard shortcuts

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