Documentation ¶
Index ¶
- Variables
- func RegisterWgchatServer(s grpc.ServiceRegistrar, srv WgchatServer)
- type CEmpty
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetClient() string
- func (x *Message) GetMessage() string
- func (x *Message) GetReceiver() string
- func (x *Message) GetSender() string
- func (x *Message) GetType() int64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Staff
- func (*Staff) Descriptor() ([]byte, []int)deprecated
- func (x *Staff) GetClient() string
- func (x *Staff) GetCompany() string
- func (x *Staff) GetHeadurl() string
- func (x *Staff) GetNickname() string
- func (x *Staff) GetOld() string
- func (x *Staff) GetUuid() string
- func (*Staff) ProtoMessage()
- func (x *Staff) ProtoReflect() protoreflect.Message
- func (x *Staff) Reset()
- func (x *Staff) String() string
- type Staffs
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetClient() string
- func (x *Status) GetCompany() string
- func (x *Status) GetStatus() bool
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type TagStaff
- func (*TagStaff) Descriptor() ([]byte, []int)deprecated
- func (x *TagStaff) GetClient() string
- func (x *TagStaff) GetCompany() string
- func (x *TagStaff) GetUuid() string
- func (*TagStaff) ProtoMessage()
- func (x *TagStaff) ProtoReflect() protoreflect.Message
- func (x *TagStaff) Reset()
- func (x *TagStaff) String() string
- type TagState
- func (*TagState) Descriptor() ([]byte, []int)deprecated
- func (x *TagState) GetClient() string
- func (x *TagState) GetCompany() string
- func (x *TagState) GetStatus() bool
- func (x *TagState) GetUuid() string
- func (*TagState) ProtoMessage()
- func (x *TagState) ProtoReflect() protoreflect.Message
- func (x *TagState) Reset()
- func (x *TagState) String() string
- type UnimplementedWgchatServer
- func (UnimplementedWgchatServer) AddMessage(context.Context, *Message) (*CEmpty, error)
- func (UnimplementedWgchatServer) AddStaff(context.Context, *Staff) (*CEmpty, error)
- func (UnimplementedWgchatServer) DeleteStaff(context.Context, *TagStaff) (*CEmpty, error)
- func (UnimplementedWgchatServer) DeleteStaffs(context.Context, *Staffs) (*CEmpty, error)
- func (UnimplementedWgchatServer) UpdateState(context.Context, *TagState) (*CEmpty, error)
- func (UnimplementedWgchatServer) UpdateStatus(context.Context, *Status) (*CEmpty, error)
- type UnsafeWgchatServer
- type WgchatClient
- type WgchatServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_wgchat_proto protoreflect.FileDescriptor
var Wgchat_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.wgchat", HandlerType: (*WgchatServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddStaff", Handler: _Wgchat_AddStaff_Handler, }, { MethodName: "UpdateState", Handler: _Wgchat_UpdateState_Handler, }, { MethodName: "UpdateStatus", Handler: _Wgchat_UpdateStatus_Handler, }, { MethodName: "DeleteStaff", Handler: _Wgchat_DeleteStaff_Handler, }, { MethodName: "DeleteStaffs", Handler: _Wgchat_DeleteStaffs_Handler, }, { MethodName: "AddMessage", Handler: _Wgchat_AddMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/wgchat.proto", }
Wgchat_ServiceDesc is the grpc.ServiceDesc for Wgchat service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWgchatServer ¶
func RegisterWgchatServer(s grpc.ServiceRegistrar, srv WgchatServer)
Types ¶
type CEmpty ¶
type CEmpty struct {
// contains filtered or unexported fields
}
Empty response for WGChat
func (*CEmpty) Descriptor
deprecated
func (*CEmpty) ProtoMessage ¶
func (*CEmpty) ProtoMessage()
func (*CEmpty) ProtoReflect ¶
func (x *CEmpty) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Client string `protobuf:"bytes,4,opt,name=client,proto3" json:"client,omitempty"` Type int64 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
Message content of chat
func (*Message) Descriptor
deprecated
func (*Message) GetMessage ¶
func (*Message) GetReceiver ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Staff ¶
type Staff struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Headurl string `protobuf:"bytes,3,opt,name=headurl,proto3" json:"headurl,omitempty"` Company string `protobuf:"bytes,4,opt,name=company,proto3" json:"company,omitempty"` Client string `protobuf:"bytes,5,opt,name=client,proto3" json:"client,omitempty"` Old string `protobuf:"bytes,6,opt,name=old,proto3" json:"old,omitempty"` // contains filtered or unexported fields }
Staff datas for add new one
func (*Staff) Descriptor
deprecated
func (*Staff) GetCompany ¶
func (*Staff) GetHeadurl ¶
func (*Staff) GetNickname ¶
func (*Staff) ProtoMessage ¶
func (*Staff) ProtoMessage()
func (*Staff) ProtoReflect ¶
func (x *Staff) ProtoReflect() protoreflect.Message
type Staffs ¶
type Staffs struct { Company string `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"` Client string `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"` // contains filtered or unexported fields }
Company's staffs
func (*Staffs) Descriptor
deprecated
func (*Staffs) GetCompany ¶
func (*Staffs) ProtoMessage ¶
func (*Staffs) ProtoMessage()
func (*Staffs) ProtoReflect ¶
func (x *Staffs) ProtoReflect() protoreflect.Message
type Status ¶
type Status struct { Company string `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"` Client string `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"` Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
Company staffs's status
func (*Status) Descriptor
deprecated
func (*Status) GetCompany ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type TagStaff ¶
type TagStaff struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Company string `protobuf:"bytes,2,opt,name=company,proto3" json:"company,omitempty"` Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"` // contains filtered or unexported fields }
Target company's staff
func (*TagStaff) Descriptor
deprecated
func (*TagStaff) GetCompany ¶
func (*TagStaff) ProtoMessage ¶
func (*TagStaff) ProtoMessage()
func (*TagStaff) ProtoReflect ¶
func (x *TagStaff) ProtoReflect() protoreflect.Message
type TagState ¶
type TagState struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Company string `protobuf:"bytes,2,opt,name=company,proto3" json:"company,omitempty"` Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"` Status bool `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
Target staff's company and state
func (*TagState) Descriptor
deprecated
func (*TagState) GetCompany ¶
func (*TagState) ProtoMessage ¶
func (*TagState) ProtoMessage()
func (*TagState) ProtoReflect ¶
func (x *TagState) ProtoReflect() protoreflect.Message
type UnimplementedWgchatServer ¶
type UnimplementedWgchatServer struct { }
UnimplementedWgchatServer must be embedded to have forward compatible implementations.
func (UnimplementedWgchatServer) AddMessage ¶
func (UnimplementedWgchatServer) DeleteStaff ¶
func (UnimplementedWgchatServer) DeleteStaffs ¶
func (UnimplementedWgchatServer) UpdateState ¶
func (UnimplementedWgchatServer) UpdateStatus ¶
type UnsafeWgchatServer ¶
type UnsafeWgchatServer interface {
// contains filtered or unexported methods
}
UnsafeWgchatServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WgchatServer will result in compilation errors.
type WgchatClient ¶
type WgchatClient interface { AddStaff(ctx context.Context, in *Staff, opts ...grpc.CallOption) (*CEmpty, error) UpdateState(ctx context.Context, in *TagState, opts ...grpc.CallOption) (*CEmpty, error) UpdateStatus(ctx context.Context, in *Status, opts ...grpc.CallOption) (*CEmpty, error) DeleteStaff(ctx context.Context, in *TagStaff, opts ...grpc.CallOption) (*CEmpty, error) DeleteStaffs(ctx context.Context, in *Staffs, opts ...grpc.CallOption) (*CEmpty, error) AddMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*CEmpty, error) }
WgchatClient is the client API for Wgchat 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 NewWgchatClient ¶
func NewWgchatClient(cc grpc.ClientConnInterface) WgchatClient
type WgchatServer ¶
type WgchatServer interface { AddStaff(context.Context, *Staff) (*CEmpty, error) UpdateState(context.Context, *TagState) (*CEmpty, error) UpdateStatus(context.Context, *Status) (*CEmpty, error) DeleteStaff(context.Context, *TagStaff) (*CEmpty, error) DeleteStaffs(context.Context, *Staffs) (*CEmpty, error) AddMessage(context.Context, *Message) (*CEmpty, error) // contains filtered or unexported methods }
WgchatServer is the server API for Wgchat service. All implementations must embed UnimplementedWgchatServer for forward compatibility