endpointupdater

package
v1.5.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_endpoint_proto protoreflect.FileDescriptor
View Source
var TestUpdater_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "endpointupdater.TestUpdater",
	HandlerType: (*TestUpdaterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateTest",
			Handler:    _TestUpdater_UpdateTest_Handler,
		},
		{
			MethodName: "QuitTestUpdateServer",
			Handler:    _TestUpdater_QuitTestUpdateServer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "endpoint.proto",
}

TestUpdater_ServiceDesc is the grpc.ServiceDesc for TestUpdater service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTestUpdaterServer added in v1.1.0

func RegisterTestUpdaterServer(s grpc.ServiceRegistrar, srv TestUpdaterServer)

Types

type Endpoint added in v1.1.0

type Endpoint struct {
	IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Port      uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated added in v1.1.0

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetIpAddress added in v1.1.0

func (x *Endpoint) GetIpAddress() string

func (*Endpoint) GetPort added in v1.1.0

func (x *Endpoint) GetPort() uint32

func (*Endpoint) ProtoMessage added in v1.1.0

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect added in v1.1.0

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

func (*Endpoint) Reset added in v1.1.0

func (x *Endpoint) Reset()

func (*Endpoint) String added in v1.1.0

func (x *Endpoint) String() string

type TestUpdateReply added in v1.1.0

type TestUpdateReply struct {
	PsmServerTargetOverride string `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestUpdateReply) Descriptor deprecated added in v1.1.0

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

Deprecated: Use TestUpdateReply.ProtoReflect.Descriptor instead.

func (*TestUpdateReply) GetPsmServerTargetOverride added in v1.1.0

func (x *TestUpdateReply) GetPsmServerTargetOverride() string

func (*TestUpdateReply) ProtoMessage added in v1.1.0

func (*TestUpdateReply) ProtoMessage()

func (*TestUpdateReply) ProtoReflect added in v1.1.0

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

func (*TestUpdateReply) Reset added in v1.1.0

func (x *TestUpdateReply) Reset()

func (*TestUpdateReply) String added in v1.1.0

func (x *TestUpdateReply) String() string

type TestUpdateRequest added in v1.1.0

type TestUpdateRequest struct {
	Endpoints []*Endpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	IsProxied bool        `protobuf:"varint,2,opt,name=is_proxied,json=isProxied,proto3" json:"is_proxied,omitempty"`
	// contains filtered or unexported fields
}

func (*TestUpdateRequest) Descriptor deprecated added in v1.1.0

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

Deprecated: Use TestUpdateRequest.ProtoReflect.Descriptor instead.

func (*TestUpdateRequest) GetEndpoints added in v1.1.0

func (x *TestUpdateRequest) GetEndpoints() []*Endpoint

func (*TestUpdateRequest) GetIsProxied added in v1.1.0

func (x *TestUpdateRequest) GetIsProxied() bool

func (*TestUpdateRequest) ProtoMessage added in v1.1.0

func (*TestUpdateRequest) ProtoMessage()

func (*TestUpdateRequest) ProtoReflect added in v1.1.0

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

func (*TestUpdateRequest) Reset added in v1.1.0

func (x *TestUpdateRequest) Reset()

func (*TestUpdateRequest) String added in v1.1.0

func (x *TestUpdateRequest) String() string

type TestUpdaterClient added in v1.1.0

type TestUpdaterClient interface {
	// Sends an update
	UpdateTest(ctx context.Context, in *TestUpdateRequest, opts ...grpc.CallOption) (*TestUpdateReply, error)
	QuitTestUpdateServer(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Void, error)
}

TestUpdaterClient is the client API for TestUpdater service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTestUpdaterClient added in v1.1.0

func NewTestUpdaterClient(cc grpc.ClientConnInterface) TestUpdaterClient

type TestUpdaterServer added in v1.1.0

type TestUpdaterServer interface {
	// Sends an update
	UpdateTest(context.Context, *TestUpdateRequest) (*TestUpdateReply, error)
	QuitTestUpdateServer(context.Context, *Void) (*Void, error)
	// contains filtered or unexported methods
}

TestUpdaterServer is the server API for TestUpdater service. All implementations must embed UnimplementedTestUpdaterServer for forward compatibility

type UnimplementedTestUpdaterServer added in v1.1.0

type UnimplementedTestUpdaterServer struct {
}

UnimplementedTestUpdaterServer must be embedded to have forward compatible implementations.

func (UnimplementedTestUpdaterServer) QuitTestUpdateServer added in v1.1.0

func (UnimplementedTestUpdaterServer) QuitTestUpdateServer(context.Context, *Void) (*Void, error)

func (UnimplementedTestUpdaterServer) UpdateTest added in v1.1.0

type UnsafeTestUpdaterServer added in v1.1.0

type UnsafeTestUpdaterServer interface {
	// contains filtered or unexported methods
}

UnsafeTestUpdaterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestUpdaterServer will result in compilation errors.

type Void added in v1.1.0

type Void struct {
	// contains filtered or unexported fields
}

func (*Void) Descriptor deprecated added in v1.1.0

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage added in v1.1.0

func (*Void) ProtoMessage()

func (*Void) ProtoReflect added in v1.1.0

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

func (*Void) Reset added in v1.1.0

func (x *Void) Reset()

func (*Void) String added in v1.1.0

func (x *Void) String() string

Jump to

Keyboard shortcuts

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