Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type Broadcast
- func (*Broadcast) Descriptor() ([]byte, []int)deprecated
- func (x *Broadcast) GetMessage() string
- func (x *Broadcast) GetTime() string
- func (x *Broadcast) GetUser() string
- func (*Broadcast) ProtoMessage()
- func (x *Broadcast) ProtoReflect() protoreflect.Message
- func (x *Broadcast) Reset()
- func (x *Broadcast) String() string
- type ChatServer
- type Publish
- func (*Publish) Descriptor() ([]byte, []int)deprecated
- func (x *Publish) GetMessage() string
- func (x *Publish) GetTime() string
- func (x *Publish) GetUser() string
- func (*Publish) ProtoMessage()
- func (x *Publish) ProtoReflect() protoreflect.Message
- func (x *Publish) Reset()
- func (x *Publish) String() string
- type ServiceClient
- type ServiceServer
- type Service_ChatServiceClient
- type Service_ChatServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_chittychat_chittychat_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chittychat.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "ChatService", Handler: _Service_ChatService_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "chittychat/chittychat.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type Broadcast ¶
type Broadcast struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Time string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*Broadcast) Descriptor
deprecated
func (*Broadcast) GetMessage ¶
func (*Broadcast) ProtoMessage ¶
func (*Broadcast) ProtoMessage()
func (*Broadcast) ProtoReflect ¶
func (x *Broadcast) ProtoReflect() protoreflect.Message
type ChatServer ¶
type ChatServer struct { }
func (*ChatServer) ChatService ¶
func (is *ChatServer) ChatService(csi serviceChatServiceServer) error
type Publish ¶
type Publish struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Time string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*Publish) Descriptor
deprecated
func (*Publish) GetMessage ¶
func (*Publish) ProtoMessage ¶
func (*Publish) ProtoMessage()
func (*Publish) ProtoReflect ¶
func (x *Publish) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface {
ChatService(ctx context.Context, opts ...grpc.CallOption) (Service_ChatServiceClient, error)
}
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { ChatService(Service_ChatServiceServer) error // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) ChatService ¶
func (UnimplementedServiceServer) ChatService(Service_ChatServiceServer) error
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.