examples

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.ExampleService",
	HandlerType: (*ExampleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExampleUnreleaseMethod",
			Handler:    _ExampleService_ExampleUnreleaseMethod_Handler,
		},
		{
			MethodName: "ExampleReleasedMethod",
			Handler:    _ExampleService_ExampleReleasedMethod_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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_example_proto protoreflect.FileDescriptor

Functions

func RegisterExampleServiceServer

func RegisterExampleServiceServer(s grpc.ServiceRegistrar, srv ExampleServiceServer)

Types

type Example

type Example struct {

	// Not annotated means this is not include in any numbered release.
	//
	// Intended for internal or alpha-only fields.
	NotAnnotated int32 `protobuf:"varint,1,opt,name=not_annotated,json=notAnnotated,proto3" json:"not_annotated,omitempty"`
	// 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"`
	PreviewedReleasedRemoved int32 `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Example) Descriptor deprecated

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

Deprecated: Use Example.ProtoReflect.Descriptor instead.

func (*Example) GetNotAnnotated

func (x *Example) GetNotAnnotated() int32

func (*Example) GetPreviewed

func (x *Example) GetPreviewed() int32

func (*Example) GetPreviewedReleasedRemoved

func (x *Example) GetPreviewedReleasedRemoved() int32

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) ToRelease

func (m *Example) ToRelease(c *proto_releases.Config)

type ExampleServiceClient

type ExampleServiceClient interface {
	ExampleUnreleaseMethod(ctx context.Context, in *Example, opts ...grpc.CallOption) (*Example, error)
	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 {
	ExampleUnreleaseMethod(context.Context, *Example) (*Example, error)
	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

func (UnimplementedExampleServiceServer) ExampleUnreleaseMethod

func (UnimplementedExampleServiceServer) ExampleUnreleaseMethod(context.Context, *Example) (*Example, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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