Documentation
¶
Index ¶
- Variables
- func RegisterExampleServiceBaseServer(s grpc.ServiceRegistrar, base server.ExampleServiceServer)
- func RegisterExampleServiceServer(s grpc.ServiceRegistrar, srv ExampleServiceServer)
- type Example
- func (*Example) Descriptor() ([]byte, []int)deprecated
- func (m *Example) FromBase(b *server.Example) *Example
- func (x *Example) GetPreviewed() int32
- func (x *Example) GetReleased() int32
- func (*Example) ProtoMessage()
- func (x *Example) ProtoReflect() protoreflect.Message
- func (x *Example) Reset()
- func (x *Example) String() string
- func (m *Example) ToBase() *server.Example
- type ExampleServiceClient
- type ExampleServiceServer
- type UnimplementedExampleServiceServer
- type UnsafeExampleServiceServer
Constants ¶
This section is empty.
Variables ¶
var ExampleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "example.beta.ExampleService", HandlerType: (*ExampleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ExampleReleasedMethod", Handler: _ExampleService_ExampleReleasedMethod_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "beta/example.proto", }
ExampleService_ServiceDesc is the grpc.ServiceDesc for ExampleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_beta_example_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExampleServiceBaseServer ¶
func RegisterExampleServiceBaseServer(s grpc.ServiceRegistrar, base server.ExampleServiceServer)
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s grpc.ServiceRegistrar, srv ExampleServiceServer)
Types ¶
type Example ¶
type Example struct { // With a designated starting release, this field will be included in any // release from this number onwards. // // Intended for stabilising fields to be included in general availability // releases. Released int32 `protobuf:"varint,2,opt,name=released,proto3" json:"released,omitempty"` // With a designated preview release, this field will be included in any // preview releases from this number onwards. // // Intended to allow fields under development to be included in beta // releases. Previewed int32 `protobuf:"varint,3,opt,name=previewed,proto3" json:"previewed,omitempty"` // contains filtered or unexported fields }
func (*Example) Descriptor
deprecated
func (*Example) GetPreviewed ¶
func (*Example) GetReleased ¶
func (*Example) ProtoMessage ¶
func (*Example) ProtoMessage()
func (*Example) ProtoReflect ¶
func (x *Example) ProtoReflect() protoreflect.Message
type ExampleServiceClient ¶
type ExampleServiceClient interface {
ExampleReleasedMethod(ctx context.Context, in *Example, opts ...grpc.CallOption) (*Example, error)
}
ExampleServiceClient is the client API for ExampleService 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 NewExampleServiceClient ¶
func NewExampleServiceClient(cc grpc.ClientConnInterface) ExampleServiceClient
type ExampleServiceServer ¶
type ExampleServiceServer interface { ExampleReleasedMethod(context.Context, *Example) (*Example, error) // contains filtered or unexported methods }
ExampleServiceServer is the server API for ExampleService service. All implementations must embed UnimplementedExampleServiceServer for forward compatibility
type UnimplementedExampleServiceServer ¶
type UnimplementedExampleServiceServer struct { }
UnimplementedExampleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedExampleServiceServer) ExampleReleasedMethod ¶
type UnsafeExampleServiceServer ¶
type UnsafeExampleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExampleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExampleServiceServer will result in compilation errors.