Documentation
¶
Overview ¶
Package auth is a generated protocol buffer package.
It is generated from these files:
api/client/auth/proto/auth.proto
It has these top-level messages:
AuthReq AuthResp TopicReq TopicResp
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var METHOD_name = map[int32]string{
0: "Auth",
1: "SubAuth",
2: "PubAuth",
}
View Source
var METHOD_value = map[string]int32{
"Auth": 0,
"SubAuth": 1,
"PubAuth": 2,
}
Functions ¶
This section is empty.
Types ¶
type AuthReq ¶
type AuthReq struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Pwd string `protobuf:"bytes,2,opt,name=pwd" json:"pwd,omitempty"` }
func (*AuthReq) Descriptor ¶
func (*AuthReq) ProtoMessage ¶
func (*AuthReq) ProtoMessage()
type AuthResp ¶
type AuthResp struct { Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"` Verified bool `protobuf:"varint,2,opt,name=verified" json:"verified,omitempty"` }
func (*AuthResp) Descriptor ¶
func (*AuthResp) GetVerified ¶
func (*AuthResp) ProtoMessage ¶
func (*AuthResp) ProtoMessage()
type TopicReq ¶
type TopicReq struct { ClientId string `protobuf:"bytes,1,opt,name=clientId" json:"clientId,omitempty"` Topic string `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"` }
func (*TopicReq) Descriptor ¶
func (*TopicReq) GetClientId ¶
func (*TopicReq) ProtoMessage ¶
func (*TopicReq) ProtoMessage()
type TopicResp ¶
type TopicResp struct {
Allow bool `protobuf:"varint,1,opt,name=allow" json:"allow,omitempty"`
}
func (*TopicResp) Descriptor ¶
func (*TopicResp) ProtoMessage ¶
func (*TopicResp) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.