Documentation ¶
Index ¶
- Variables
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer)
- type Data
- func (*Data) Descriptor() ([]byte, []int)deprecated
- func (x *Data) GetFloat() []float32
- func (x *Data) GetFloat2() []float32
- func (x *Data) GetFoo() *Foo2
- func (x *Data) GetFoo2() *Foo2
- func (x *Data) GetString2() string
- func (x *Data) GetString_() string
- func (*Data) ProtoMessage()
- func (x *Data) ProtoReflect() protoreflect.Message
- func (x *Data) Reset()
- func (x *Data) String() string
- type Foo2
- type QueryClient
- type QueryServer
- type Query_SubscribeClient
- type Query_SubscribeServer
- type ServiceClient
- type ServiceServer
- type Service_InvalidSubscribe1Client
- type Service_InvalidSubscribe1Server
- type Service_InvalidSubscribe2Client
- type Service_InvalidSubscribe2Server
- type Service_InvalidSubscribe3Client
- type Service_InvalidSubscribe3Server
- type Service_PubSub1Client
- type Service_PubSub1Server
- type Service_PubSub2Client
- type Service_PubSub2Server
- type Service_PublishClient
- type Service_PublishServer
- type Service_SubscribeClient
- type Service_SubscribeServer
- type TestClient
- type TestServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Mutate1(context.Context, *Data) (*Data, error)
- func (UnimplementedQueryServer) Query1(context.Context, *Data) (*Data, error)
- func (UnimplementedQueryServer) Query2(context.Context, *Data) (*Data, error)
- func (UnimplementedQueryServer) Subscribe(*Data, Query_SubscribeServer) error
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) Ignore(context.Context, *Data) (*Data, error)
- func (UnimplementedServiceServer) InvalidSubscribe1(Service_InvalidSubscribe1Server) error
- func (UnimplementedServiceServer) InvalidSubscribe2(*Data, Service_InvalidSubscribe2Server) error
- func (UnimplementedServiceServer) InvalidSubscribe3(Service_InvalidSubscribe3Server) error
- func (UnimplementedServiceServer) Mutate1(context.Context, *Data) (*Data, error)
- func (UnimplementedServiceServer) Mutate2(context.Context, *Data) (*Data, error)
- func (UnimplementedServiceServer) Name(context.Context, *Data) (*Data, error)
- func (UnimplementedServiceServer) PubSub1(Service_PubSub1Server) error
- func (UnimplementedServiceServer) PubSub2(Service_PubSub2Server) error
- func (UnimplementedServiceServer) Publish(Service_PublishServer) error
- func (UnimplementedServiceServer) Query1(context.Context, *Data) (*Data, error)
- func (UnimplementedServiceServer) Query2(context.Context, *Data) (*Data, error)
- func (UnimplementedServiceServer) Subscribe(*Data, Service_SubscribeServer) error
- type UnimplementedTestServer
- type UnsafeQueryServer
- type UnsafeServiceServer
- type UnsafeTestServer
Constants ¶
This section is empty.
Variables ¶
var File_optionsserver_pb_options_proto protoreflect.FileDescriptor
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "optionsserver.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Query1", Handler: _Query_Query1_Handler, }, { MethodName: "Query2", Handler: _Query_Query2_Handler, }, { MethodName: "Mutate1", Handler: _Query_Mutate1_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Subscribe", Handler: _Query_Subscribe_Handler, ServerStreams: true, }, }, Metadata: "optionsserver/pb/options.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "optionsserver.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Mutate1", Handler: _Service_Mutate1_Handler, }, { MethodName: "Mutate2", Handler: _Service_Mutate2_Handler, }, { MethodName: "Query1", Handler: _Service_Query1_Handler, }, { MethodName: "Query2", Handler: _Service_Query2_Handler, }, { MethodName: "Ignore", Handler: _Service_Ignore_Handler, }, { MethodName: "Name", Handler: _Service_Name_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Publish", Handler: _Service_Publish_Handler, ClientStreams: true, }, { StreamName: "Subscribe", Handler: _Service_Subscribe_Handler, ServerStreams: true, }, { StreamName: "PubSub1", Handler: _Service_PubSub1_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "InvalidSubscribe1", Handler: _Service_InvalidSubscribe1_Handler, ClientStreams: true, }, { StreamName: "InvalidSubscribe2", Handler: _Service_InvalidSubscribe2_Handler, ServerStreams: true, }, { StreamName: "InvalidSubscribe3", Handler: _Service_InvalidSubscribe3_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "PubSub2", Handler: _Service_PubSub2_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "optionsserver/pb/options.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Test_ServiceDesc = grpc.ServiceDesc{ ServiceName: "optionsserver.Test", HandlerType: (*TestServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Name", Handler: _Test_Name_Handler, }, { MethodName: "NewName", Handler: _Test_NewName_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "optionsserver/pb/options.proto", }
Test_ServiceDesc is the grpc.ServiceDesc for Test service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
func RegisterTestServer ¶
func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer)
Types ¶
type Data ¶
type Data struct { String_ string `protobuf:"bytes,1,opt,name=string,proto3" json:"string,omitempty"` // must be required Foo *Foo2 `protobuf:"bytes,2,opt,name=foo,proto3" json:"foo,omitempty"` // must be required Float []float32 `protobuf:"fixed32,3,rep,packed,name=float,proto3" json:"float,omitempty"` // must be required because its greater than 0 String2 string `protobuf:"bytes,4,opt,name=string2,proto3" json:"string2,omitempty"` // simple Foo2 *Foo2 `protobuf:"bytes,5,opt,name=foo2,proto3" json:"foo2,omitempty"` // simple Float2 []float32 `protobuf:"fixed32,6,rep,packed,name=float2,proto3" json:"float2,omitempty"` // simple // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) GetString2 ¶
func (*Data) GetString_ ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Foo2 ¶
type Foo2 struct { Param1 string `protobuf:"bytes,1,opt,name=param1,proto3" json:"param1,omitempty"` // contains filtered or unexported fields }
func (*Foo2) Descriptor
deprecated
func (*Foo2) ProtoMessage ¶
func (*Foo2) ProtoMessage()
func (*Foo2) ProtoReflect ¶
func (x *Foo2) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { Query1(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Query2(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Mutate1(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Subscribe(ctx context.Context, in *Data, opts ...grpc.CallOption) (Query_SubscribeClient, error) }
QueryClient is the client API for Query 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 NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryServer ¶
type QueryServer interface { Query1(context.Context, *Data) (*Data, error) Query2(context.Context, *Data) (*Data, error) Mutate1(context.Context, *Data) (*Data, error) Subscribe(*Data, Query_SubscribeServer) error // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type Query_SubscribeClient ¶
type Query_SubscribeClient interface { Recv() (*Data, error) grpc.ClientStream }
type Query_SubscribeServer ¶
type Query_SubscribeServer interface { Send(*Data) error grpc.ServerStream }
type ServiceClient ¶
type ServiceClient interface { Mutate1(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Mutate2(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Query1(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Query2(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Publish(ctx context.Context, opts ...grpc.CallOption) (Service_PublishClient, error) Subscribe(ctx context.Context, in *Data, opts ...grpc.CallOption) (Service_SubscribeClient, error) PubSub1(ctx context.Context, opts ...grpc.CallOption) (Service_PubSub1Client, error) InvalidSubscribe1(ctx context.Context, opts ...grpc.CallOption) (Service_InvalidSubscribe1Client, error) InvalidSubscribe2(ctx context.Context, in *Data, opts ...grpc.CallOption) (Service_InvalidSubscribe2Client, error) InvalidSubscribe3(ctx context.Context, opts ...grpc.CallOption) (Service_InvalidSubscribe3Client, error) PubSub2(ctx context.Context, opts ...grpc.CallOption) (Service_PubSub2Client, error) Ignore(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) Name(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { Mutate1(context.Context, *Data) (*Data, error) Mutate2(context.Context, *Data) (*Data, error) Query1(context.Context, *Data) (*Data, error) Query2(context.Context, *Data) (*Data, error) Publish(Service_PublishServer) error Subscribe(*Data, Service_SubscribeServer) error PubSub1(Service_PubSub1Server) error InvalidSubscribe1(Service_InvalidSubscribe1Server) error InvalidSubscribe2(*Data, Service_InvalidSubscribe2Server) error InvalidSubscribe3(Service_InvalidSubscribe3Server) error PubSub2(Service_PubSub2Server) error Ignore(context.Context, *Data) (*Data, error) Name(context.Context, *Data) (*Data, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type Service_InvalidSubscribe2Client ¶
type Service_InvalidSubscribe2Client interface { Recv() (*Data, error) grpc.ClientStream }
type Service_InvalidSubscribe2Server ¶
type Service_InvalidSubscribe2Server interface { Send(*Data) error grpc.ServerStream }
type Service_PubSub1Client ¶
type Service_PubSub1Server ¶
type Service_PubSub2Client ¶
type Service_PubSub2Server ¶
type Service_PublishClient ¶
type Service_PublishServer ¶
type Service_SubscribeClient ¶
type Service_SubscribeClient interface { Recv() (*Data, error) grpc.ClientStream }
type Service_SubscribeServer ¶
type Service_SubscribeServer interface { Send(*Data) error grpc.ServerStream }
type TestClient ¶
type TestClient interface { Name(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) NewName(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Data, error) }
TestClient is the client API for Test 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 NewTestClient ¶
func NewTestClient(cc grpc.ClientConnInterface) TestClient
type TestServer ¶
type TestServer interface { Name(context.Context, *Data) (*Data, error) NewName(context.Context, *Data) (*Data, error) // contains filtered or unexported methods }
TestServer is the server API for Test service. All implementations must embed UnimplementedTestServer for forward compatibility
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Subscribe ¶
func (UnimplementedQueryServer) Subscribe(*Data, Query_SubscribeServer) error
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) InvalidSubscribe1 ¶
func (UnimplementedServiceServer) InvalidSubscribe1(Service_InvalidSubscribe1Server) error
func (UnimplementedServiceServer) InvalidSubscribe2 ¶
func (UnimplementedServiceServer) InvalidSubscribe2(*Data, Service_InvalidSubscribe2Server) error
func (UnimplementedServiceServer) InvalidSubscribe3 ¶
func (UnimplementedServiceServer) InvalidSubscribe3(Service_InvalidSubscribe3Server) error
func (UnimplementedServiceServer) PubSub1 ¶
func (UnimplementedServiceServer) PubSub1(Service_PubSub1Server) error
func (UnimplementedServiceServer) PubSub2 ¶
func (UnimplementedServiceServer) PubSub2(Service_PubSub2Server) error
func (UnimplementedServiceServer) Publish ¶
func (UnimplementedServiceServer) Publish(Service_PublishServer) error
func (UnimplementedServiceServer) Subscribe ¶
func (UnimplementedServiceServer) Subscribe(*Data, Service_SubscribeServer) error
type UnimplementedTestServer ¶
type UnimplementedTestServer struct { }
UnimplementedTestServer must be embedded to have forward compatible implementations.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UnsafeTestServer ¶
type UnsafeTestServer interface {
// contains filtered or unexported methods
}
UnsafeTestServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServer will result in compilation errors.