bar

package
v0.0.0-...-c3b3def Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bar_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bar.Bar",
	HandlerType: (*BarServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DoBar",
			Handler:    _Bar_DoBar_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bar/bar.proto",
}

Bar_ServiceDesc is the grpc.ServiceDesc for Bar 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_bar_bar_proto protoreflect.FileDescriptor

Functions

func RegisterBarServer

func RegisterBarServer(s grpc.ServiceRegistrar, srv BarServer)

Types

type BarClient

type BarClient interface {
	DoBar(ctx context.Context, in *BarReq, opts ...grpc.CallOption) (*BarResp, error)
}

BarClient is the client API for Bar 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 NewBarClient

func NewBarClient(cc grpc.ClientConnInterface) BarClient

type BarReq

type BarReq struct {
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*BarReq) Descriptor deprecated

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

Deprecated: Use BarReq.ProtoReflect.Descriptor instead.

func (*BarReq) GetPage

func (x *BarReq) GetPage() int64

func (*BarReq) ProtoMessage

func (*BarReq) ProtoMessage()

func (*BarReq) ProtoReflect

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

func (*BarReq) Reset

func (x *BarReq) Reset()

func (*BarReq) String

func (x *BarReq) String() string

type BarResp

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

func (*BarResp) Descriptor deprecated

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

Deprecated: Use BarResp.ProtoReflect.Descriptor instead.

func (*BarResp) GetText

func (x *BarResp) GetText() string

func (*BarResp) ProtoMessage

func (*BarResp) ProtoMessage()

func (*BarResp) ProtoReflect

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

func (*BarResp) Reset

func (x *BarResp) Reset()

func (*BarResp) String

func (x *BarResp) String() string

type BarServer

type BarServer interface {
	DoBar(context.Context, *BarReq) (*BarResp, error)
	// contains filtered or unexported methods
}

BarServer is the server API for Bar service. All implementations must embed UnimplementedBarServer for forward compatibility

type UnimplementedBarServer

type UnimplementedBarServer struct {
}

UnimplementedBarServer must be embedded to have forward compatible implementations.

func (UnimplementedBarServer) DoBar

type UnsafeBarServer

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

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

Jump to

Keyboard shortcuts

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