proto

package
Version: v0.0.0-...-3e1b589 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Actions_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "actions.Actions",
	HandlerType: (*ActionsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ActionEcho",
			Handler:    _Actions_ActionEcho_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/actions-test.proto",
}

Actions_ServiceDesc is the grpc.ServiceDesc for Actions 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_proto_actions_test_proto protoreflect.FileDescriptor

Functions

func RegisterActionsServer

func RegisterActionsServer(s grpc.ServiceRegistrar, srv ActionsServer)

Types

type ActionsClient

type ActionsClient interface {
	// Echoes back the request
	ActionEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error)
}

ActionsClient is the client API for Actions 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 NewActionsClient

func NewActionsClient(cc grpc.ClientConnInterface) ActionsClient

type ActionsServer

type ActionsServer interface {
	// Echoes back the request
	ActionEcho(context.Context, *EchoRequest) (*EchoReply, error)
	// contains filtered or unexported methods
}

ActionsServer is the server API for Actions service. All implementations must embed UnimplementedActionsServer for forward compatibility

type EchoReply

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

The response message containing the greetings

func (*EchoReply) Descriptor deprecated

This method has been deprecated.
func (*EchoReply) Descriptor() ([]byte, []int)

Deprecated: Use EchoReply.ProtoReflect.Descriptor instead.

func (*EchoReply) GetMessage

func (x *EchoReply) GetMessage() string

func (*EchoReply) ProtoMessage

func (*EchoReply) ProtoMessage()

func (*EchoReply) ProtoReflect

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

func (*EchoReply) Reset

func (x *EchoReply) Reset()

func (*EchoReply) String

func (x *EchoReply) String() string

type EchoRequest

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

The request message containing the user's name.

func (*EchoRequest) Descriptor deprecated

This method has been deprecated.
func (*EchoRequest) Descriptor() ([]byte, []int)

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetInput

func (x *EchoRequest) GetInput() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

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

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type UnimplementedActionsServer

type UnimplementedActionsServer struct {
}

UnimplementedActionsServer must be embedded to have forward compatible implementations.

func (UnimplementedActionsServer) ActionEcho

type UnsafeActionsServer

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL