Documentation ¶
Index ¶
- Variables
- func RegisterTestUpdaterServer(s grpc.ServiceRegistrar, srv TestUpdaterServer)
- type Endpoint
- type TestUpdateReply
- func (*TestUpdateReply) Descriptor() ([]byte, []int)deprecated
- func (x *TestUpdateReply) GetPsmServerTargetOverride() string
- func (*TestUpdateReply) ProtoMessage()
- func (x *TestUpdateReply) ProtoReflect() protoreflect.Message
- func (x *TestUpdateReply) Reset()
- func (x *TestUpdateReply) String() string
- type TestUpdateRequest
- func (*TestUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestUpdateRequest) GetEndpoints() []*Endpoint
- func (x *TestUpdateRequest) GetIsProxied() bool
- func (*TestUpdateRequest) ProtoMessage()
- func (x *TestUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *TestUpdateRequest) Reset()
- func (x *TestUpdateRequest) String() string
- type TestUpdaterClient
- type TestUpdaterServer
- type UnimplementedTestUpdaterServer
- type UnsafeTestUpdaterServer
- type Void
Constants ¶
This section is empty.
Variables ¶
var File_endpoint_proto protoreflect.FileDescriptor
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) GetIpAddress ¶ added in v1.1.0
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
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) UpdateTest ¶ added in v1.1.0
func (UnimplementedTestUpdaterServer) UpdateTest(context.Context, *TestUpdateRequest) (*TestUpdateReply, error)
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) ProtoMessage ¶ added in v1.1.0
func (*Void) ProtoMessage()
func (*Void) ProtoReflect ¶ added in v1.1.0
func (x *Void) ProtoReflect() protoreflect.Message