gen

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	TheService_TheFunction_FullMethodName = "/buoyantio.bb.TheService/theFunction"
)

Variables

View Source
var TheService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "buoyantio.bb.TheService",
	HandlerType: (*TheServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "theFunction",
			Handler:    _TheService_TheFunction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

TheService_ServiceDesc is the grpc.ServiceDesc for TheService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTheServiceServer

func RegisterTheServiceServer(s grpc.ServiceRegistrar, srv TheServiceServer)

Types

type TheRequest

type TheRequest struct {
	RequestUID string `protobuf:"bytes,1,opt,name=requestUID,proto3" json:"requestUID,omitempty"`
	// contains filtered or unexported fields
}

func (*TheRequest) Descriptor deprecated

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

Deprecated: Use TheRequest.ProtoReflect.Descriptor instead.

func (*TheRequest) GetRequestUID

func (x *TheRequest) GetRequestUID() string

func (*TheRequest) ProtoMessage

func (*TheRequest) ProtoMessage()

func (*TheRequest) ProtoReflect added in v0.0.7

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

func (*TheRequest) Reset

func (x *TheRequest) Reset()

func (*TheRequest) String

func (x *TheRequest) String() string

type TheResponse

type TheResponse struct {
	RequestUID string `protobuf:"bytes,1,opt,name=requestUID,proto3" json:"requestUID,omitempty"`
	Payload    string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*TheResponse) Descriptor deprecated

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

Deprecated: Use TheResponse.ProtoReflect.Descriptor instead.

func (*TheResponse) GetPayload

func (x *TheResponse) GetPayload() string

func (*TheResponse) GetRequestUID

func (x *TheResponse) GetRequestUID() string

func (*TheResponse) ProtoMessage

func (*TheResponse) ProtoMessage()

func (*TheResponse) ProtoReflect added in v0.0.7

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

func (*TheResponse) Reset

func (x *TheResponse) Reset()

func (*TheResponse) String

func (x *TheResponse) String() string

type TheServiceClient

type TheServiceClient interface {
	TheFunction(ctx context.Context, in *TheRequest, opts ...grpc.CallOption) (*TheResponse, error)
}

TheServiceClient is the client API for TheService 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 NewTheServiceClient

func NewTheServiceClient(cc grpc.ClientConnInterface) TheServiceClient

type TheServiceServer

type TheServiceServer interface {
	TheFunction(context.Context, *TheRequest) (*TheResponse, error)
	// contains filtered or unexported methods
}

TheServiceServer is the server API for TheService service. All implementations must embed UnimplementedTheServiceServer for forward compatibility

type UnimplementedTheServiceServer added in v0.0.7

type UnimplementedTheServiceServer struct {
}

UnimplementedTheServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTheServiceServer) TheFunction added in v0.0.7

type UnsafeTheServiceServer added in v0.0.7

type UnsafeTheServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTheServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TheServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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