proto

package
v0.0.0-...-9fb043b Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_wgchat_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use CEmpty.ProtoReflect.Descriptor instead.

func (*CEmpty) ProtoMessage

func (*CEmpty) ProtoMessage()

func (*CEmpty) ProtoReflect

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

func (*CEmpty) Reset

func (x *CEmpty) Reset()

func (*CEmpty) String

func (x *CEmpty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetClient

func (x *Message) GetClient() string

func (*Message) GetMessage

func (x *Message) GetMessage() string

func (*Message) GetReceiver

func (x *Message) GetReceiver() string

func (*Message) GetSender

func (x *Message) GetSender() string

func (*Message) GetType

func (x *Message) GetType() int64

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Staff.ProtoReflect.Descriptor instead.

func (*Staff) GetClient

func (x *Staff) GetClient() string

func (*Staff) GetCompany

func (x *Staff) GetCompany() string

func (*Staff) GetHeadurl

func (x *Staff) GetHeadurl() string

func (*Staff) GetNickname

func (x *Staff) GetNickname() string

func (*Staff) GetOld

func (x *Staff) GetOld() string

func (*Staff) GetUuid

func (x *Staff) GetUuid() string

func (*Staff) ProtoMessage

func (*Staff) ProtoMessage()

func (*Staff) ProtoReflect

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

func (*Staff) Reset

func (x *Staff) Reset()

func (*Staff) String

func (x *Staff) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Staffs.ProtoReflect.Descriptor instead.

func (*Staffs) GetClient

func (x *Staffs) GetClient() string

func (*Staffs) GetCompany

func (x *Staffs) GetCompany() string

func (*Staffs) ProtoMessage

func (*Staffs) ProtoMessage()

func (*Staffs) ProtoReflect

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

func (*Staffs) Reset

func (x *Staffs) Reset()

func (*Staffs) String

func (x *Staffs) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetClient

func (x *Status) GetClient() string

func (*Status) GetCompany

func (x *Status) GetCompany() string

func (*Status) GetStatus

func (x *Status) GetStatus() bool

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TagStaff.ProtoReflect.Descriptor instead.

func (*TagStaff) GetClient

func (x *TagStaff) GetClient() string

func (*TagStaff) GetCompany

func (x *TagStaff) GetCompany() string

func (*TagStaff) GetUuid

func (x *TagStaff) GetUuid() string

func (*TagStaff) ProtoMessage

func (*TagStaff) ProtoMessage()

func (*TagStaff) ProtoReflect

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

func (*TagStaff) Reset

func (x *TagStaff) Reset()

func (*TagStaff) String

func (x *TagStaff) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TagState.ProtoReflect.Descriptor instead.

func (*TagState) GetClient

func (x *TagState) GetClient() string

func (*TagState) GetCompany

func (x *TagState) GetCompany() string

func (*TagState) GetStatus

func (x *TagState) GetStatus() bool

func (*TagState) GetUuid

func (x *TagState) GetUuid() string

func (*TagState) ProtoMessage

func (*TagState) ProtoMessage()

func (*TagState) ProtoReflect

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

func (*TagState) Reset

func (x *TagState) Reset()

func (*TagState) String

func (x *TagState) String() string

type UnimplementedWgchatServer

type UnimplementedWgchatServer struct {
}

UnimplementedWgchatServer must be embedded to have forward compatible implementations.

func (UnimplementedWgchatServer) AddMessage

func (UnimplementedWgchatServer) AddStaff

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

Jump to

Keyboard shortcuts

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