stable

package
v0.0.0-...-d2e5bb1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExampleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "example.stable.ExampleService",
	HandlerType: (*ExampleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExampleReleasedMethod",
			Handler:    _ExampleService_ExampleReleasedMethod_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stable/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)

View Source
var File_stable_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"`
	// contains filtered or unexported fields
}

func (*Example) Descriptor deprecated

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

Deprecated: Use Example.ProtoReflect.Descriptor instead.

func (*Example) FromBase

func (m *Example) FromBase(b *server.Example) *Example

func (*Example) GetReleased

func (x *Example) GetReleased() int32

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) ProtoReflect

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

func (*Example) Reset

func (x *Example) Reset()

func (*Example) String

func (x *Example) String() string

func (*Example) ToBase

func (m *Example) ToBase() *server.Example

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.

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.

Jump to

Keyboard shortcuts

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