Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ChannelsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bot.ChannelsService", HandlerType: (*ChannelsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getChannels", Handler: _ChannelsService_GetChannels_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bot.proto", }
ChannelsService_ServiceDesc is the grpc.ServiceDesc for ChannelsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_bot_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChannelsServiceServer ¶
func RegisterChannelsServiceServer(s grpc.ServiceRegistrar, srv ChannelsServiceServer)
Types ¶
type Channel ¶
type Channel struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Channel) Descriptor
deprecated
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect ¶
func (x *Channel) ProtoReflect() protoreflect.Message
type ChannelsServiceClient ¶
type ChannelsServiceClient interface {
GetChannels(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*RespondChannels, error)
}
ChannelsServiceClient is the client API for ChannelsService 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 NewChannelsServiceClient ¶
func NewChannelsServiceClient(cc grpc.ClientConnInterface) ChannelsServiceClient
type ChannelsServiceServer ¶
type ChannelsServiceServer interface { GetChannels(context.Context, *Empty) (*RespondChannels, error) // contains filtered or unexported methods }
ChannelsServiceServer is the server API for ChannelsService service. All implementations must embed UnimplementedChannelsServiceServer for forward compatibility
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type RespondChannels ¶
type RespondChannels struct { Channels []*Channel `protobuf:"bytes,1,rep,name=Channels,proto3" json:"Channels,omitempty"` // contains filtered or unexported fields }
func (*RespondChannels) Descriptor
deprecated
func (*RespondChannels) Descriptor() ([]byte, []int)
Deprecated: Use RespondChannels.ProtoReflect.Descriptor instead.
func (*RespondChannels) GetChannels ¶
func (x *RespondChannels) GetChannels() []*Channel
func (*RespondChannels) ProtoMessage ¶
func (*RespondChannels) ProtoMessage()
func (*RespondChannels) ProtoReflect ¶
func (x *RespondChannels) ProtoReflect() protoreflect.Message
func (*RespondChannels) Reset ¶
func (x *RespondChannels) Reset()
func (*RespondChannels) String ¶
func (x *RespondChannels) String() string
type UnimplementedChannelsServiceServer ¶
type UnimplementedChannelsServiceServer struct { }
UnimplementedChannelsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedChannelsServiceServer) GetChannels ¶
func (UnimplementedChannelsServiceServer) GetChannels(context.Context, *Empty) (*RespondChannels, error)
type UnsafeChannelsServiceServer ¶
type UnsafeChannelsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeChannelsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChannelsServiceServer will result in compilation errors.