standup

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Standup_CreateMessage_FullMethodName = "/xopoww.standup.Standup/CreateMessage"
	Standup_GetMessage_FullMethodName    = "/xopoww.standup.Standup/GetMessage"
	Standup_ListMessages_FullMethodName  = "/xopoww.standup.Standup/ListMessages"
)

Variables

View Source
var File_message_proto protoreflect.FileDescriptor
View Source
var File_standup_service_proto protoreflect.FileDescriptor
View Source
var Standup_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "xopoww.standup.Standup",
	HandlerType: (*StandupServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMessage",
			Handler:    _Standup_CreateMessage_Handler,
		},
		{
			MethodName: "GetMessage",
			Handler:    _Standup_GetMessage_Handler,
		},
		{
			MethodName: "ListMessages",
			Handler:    _Standup_ListMessages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "standup_service.proto",
}

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

Functions

func RegisterStandupServer

func RegisterStandupServer(s grpc.ServiceRegistrar, srv StandupServer)

Types

type CreateMessageRequest

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

func (*CreateMessageRequest) Descriptor deprecated

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

Deprecated: Use CreateMessageRequest.ProtoReflect.Descriptor instead.

func (*CreateMessageRequest) GetOwnerId

func (x *CreateMessageRequest) GetOwnerId() string

func (*CreateMessageRequest) GetText

func (x *CreateMessageRequest) GetText() string

func (*CreateMessageRequest) ProtoMessage

func (*CreateMessageRequest) ProtoMessage()

func (*CreateMessageRequest) ProtoReflect

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

func (*CreateMessageRequest) Reset

func (x *CreateMessageRequest) Reset()

func (*CreateMessageRequest) String

func (x *CreateMessageRequest) String() string

type CreateMessageResponse

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

func (*CreateMessageResponse) Descriptor deprecated

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

Deprecated: Use CreateMessageResponse.ProtoReflect.Descriptor instead.

func (*CreateMessageResponse) GetId

func (x *CreateMessageResponse) GetId() string

func (*CreateMessageResponse) ProtoMessage

func (*CreateMessageResponse) ProtoMessage()

func (*CreateMessageResponse) ProtoReflect

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

func (*CreateMessageResponse) Reset

func (x *CreateMessageResponse) Reset()

func (*CreateMessageResponse) String

func (x *CreateMessageResponse) String() string

type GetMessageRequest

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

func (*GetMessageRequest) Descriptor deprecated

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

Deprecated: Use GetMessageRequest.ProtoReflect.Descriptor instead.

func (*GetMessageRequest) GetId

func (x *GetMessageRequest) GetId() string

func (*GetMessageRequest) ProtoMessage

func (*GetMessageRequest) ProtoMessage()

func (*GetMessageRequest) ProtoReflect

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

func (*GetMessageRequest) Reset

func (x *GetMessageRequest) Reset()

func (*GetMessageRequest) String

func (x *GetMessageRequest) String() string

type GetMessageResponse

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

func (*GetMessageResponse) Descriptor deprecated

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

Deprecated: Use GetMessageResponse.ProtoReflect.Descriptor instead.

func (*GetMessageResponse) GetMessage

func (x *GetMessageResponse) GetMessage() *Message

func (*GetMessageResponse) ProtoMessage

func (*GetMessageResponse) ProtoMessage()

func (*GetMessageResponse) ProtoReflect

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

func (*GetMessageResponse) Reset

func (x *GetMessageResponse) Reset()

func (*GetMessageResponse) String

func (x *GetMessageResponse) String() string

type ListMessagesRequest

type ListMessagesRequest struct {
	OwnerId string                 `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	From    *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To      *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMessagesRequest) Descriptor deprecated

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

Deprecated: Use ListMessagesRequest.ProtoReflect.Descriptor instead.

func (*ListMessagesRequest) GetFrom

func (*ListMessagesRequest) GetOwnerId

func (x *ListMessagesRequest) GetOwnerId() string

func (*ListMessagesRequest) GetTo

func (*ListMessagesRequest) ProtoMessage

func (*ListMessagesRequest) ProtoMessage()

func (*ListMessagesRequest) ProtoReflect

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

func (*ListMessagesRequest) Reset

func (x *ListMessagesRequest) Reset()

func (*ListMessagesRequest) String

func (x *ListMessagesRequest) String() string

type ListMessagesResponse

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

func (*ListMessagesResponse) Descriptor deprecated

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

Deprecated: Use ListMessagesResponse.ProtoReflect.Descriptor instead.

func (*ListMessagesResponse) GetMessages

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

func (*ListMessagesResponse) ProtoMessage

func (*ListMessagesResponse) ProtoMessage()

func (*ListMessagesResponse) ProtoReflect

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

func (*ListMessagesResponse) Reset

func (x *ListMessagesResponse) Reset()

func (*ListMessagesResponse) String

func (x *ListMessagesResponse) String() string

type Message

type Message struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Text      string                 `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	OwnerId   string                 `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetCreatedAt

func (x *Message) GetCreatedAt() *timestamppb.Timestamp

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetOwnerId

func (x *Message) GetOwnerId() string

func (*Message) GetText

func (x *Message) GetText() 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 StandupClient

type StandupClient interface {
	CreateMessage(ctx context.Context, in *CreateMessageRequest, opts ...grpc.CallOption) (*CreateMessageResponse, error)
	GetMessage(ctx context.Context, in *GetMessageRequest, opts ...grpc.CallOption) (*GetMessageResponse, error)
	ListMessages(ctx context.Context, in *ListMessagesRequest, opts ...grpc.CallOption) (*ListMessagesResponse, error)
}

StandupClient is the client API for Standup 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 NewStandupClient

func NewStandupClient(cc grpc.ClientConnInterface) StandupClient

type StandupServer

type StandupServer interface {
	CreateMessage(context.Context, *CreateMessageRequest) (*CreateMessageResponse, error)
	GetMessage(context.Context, *GetMessageRequest) (*GetMessageResponse, error)
	ListMessages(context.Context, *ListMessagesRequest) (*ListMessagesResponse, error)
	// contains filtered or unexported methods
}

StandupServer is the server API for Standup service. All implementations must embed UnimplementedStandupServer for forward compatibility

type UnimplementedStandupServer

type UnimplementedStandupServer struct {
}

UnimplementedStandupServer must be embedded to have forward compatible implementations.

func (UnimplementedStandupServer) CreateMessage

func (UnimplementedStandupServer) GetMessage

func (UnimplementedStandupServer) ListMessages

type UnsafeStandupServer

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

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

Jump to

Keyboard shortcuts

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