v1

package
v0.0.0-...-1c37eff Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_traces_api_user_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.user.v1.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMyMessages",
			Handler:    _User_GetMyMessages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "traces/api/user/user.proto",
}

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

Functions

func RegisterUserHTTPServer

func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type GetMyMessagesReply

type GetMyMessagesReply struct {
	Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMyMessagesReply) Descriptor deprecated

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

Deprecated: Use GetMyMessagesReply.ProtoReflect.Descriptor instead.

func (*GetMyMessagesReply) GetMessages

func (x *GetMyMessagesReply) GetMessages() []*Message

func (*GetMyMessagesReply) ProtoMessage

func (*GetMyMessagesReply) ProtoMessage()

func (*GetMyMessagesReply) ProtoReflect

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

func (*GetMyMessagesReply) Reset

func (x *GetMyMessagesReply) Reset()

func (*GetMyMessagesReply) String

func (x *GetMyMessagesReply) String() string

type GetMyMessagesRequest

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

func (*GetMyMessagesRequest) Descriptor deprecated

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

Deprecated: Use GetMyMessagesRequest.ProtoReflect.Descriptor instead.

func (*GetMyMessagesRequest) GetCount

func (x *GetMyMessagesRequest) GetCount() int64

func (*GetMyMessagesRequest) ProtoMessage

func (*GetMyMessagesRequest) ProtoMessage()

func (*GetMyMessagesRequest) ProtoReflect

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

func (*GetMyMessagesRequest) Reset

func (x *GetMyMessagesRequest) Reset()

func (*GetMyMessagesRequest) String

func (x *GetMyMessagesRequest) String() string

type Message

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

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetContent

func (x *Message) GetContent() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) GetMyMessages

type UnsafeUserServer

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

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

type UserClient

type UserClient interface {
	GetMyMessages(ctx context.Context, in *GetMyMessagesRequest, opts ...grpc.CallOption) (*GetMyMessagesReply, error)
}

UserClient is the client API for User 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 NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserHTTPClient

type UserHTTPClient interface {
	GetMyMessages(ctx context.Context, req *GetMyMessagesRequest, opts ...http.CallOption) (rsp *GetMyMessagesReply, err error)
}

func NewUserHTTPClient

func NewUserHTTPClient(client *http.Client) UserHTTPClient

type UserHTTPClientImpl

type UserHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*UserHTTPClientImpl) GetMyMessages

type UserHTTPServer

type UserHTTPServer interface {
	GetMyMessages(context.Context, *GetMyMessagesRequest) (*GetMyMessagesReply, error)
}

type UserServer

type UserServer interface {
	GetMyMessages(context.Context, *GetMyMessagesRequest) (*GetMyMessagesReply, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

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