auth

package
v0.0.0-...-89754d3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 3 Imported by: 0

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

func (*AuthReq) GetName

func (m *AuthReq) GetName() string

func (*AuthReq) GetPwd

func (m *AuthReq) GetPwd() string

func (*AuthReq) ProtoMessage

func (*AuthReq) ProtoMessage()

func (*AuthReq) Reset

func (m *AuthReq) Reset()

func (*AuthReq) String

func (m *AuthReq) String() string

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

func (*AuthResp) GetToken

func (m *AuthResp) GetToken() string

func (*AuthResp) GetVerified

func (m *AuthResp) GetVerified() bool

func (*AuthResp) ProtoMessage

func (*AuthResp) ProtoMessage()

func (*AuthResp) Reset

func (m *AuthResp) Reset()

func (*AuthResp) String

func (m *AuthResp) String() string

type METHOD

type METHOD int32
const (
	METHOD_Auth    METHOD = 0
	METHOD_SubAuth METHOD = 1
	METHOD_PubAuth METHOD = 2
)

func (METHOD) EnumDescriptor

func (METHOD) EnumDescriptor() ([]byte, []int)

func (METHOD) String

func (x METHOD) String() string

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

func (*TopicReq) GetClientId

func (m *TopicReq) GetClientId() string

func (*TopicReq) GetTopic

func (m *TopicReq) GetTopic() string

func (*TopicReq) ProtoMessage

func (*TopicReq) ProtoMessage()

func (*TopicReq) Reset

func (m *TopicReq) Reset()

func (*TopicReq) String

func (m *TopicReq) String() string

type TopicResp

type TopicResp struct {
	Allow bool `protobuf:"varint,1,opt,name=allow" json:"allow,omitempty"`
}

func (*TopicResp) Descriptor

func (*TopicResp) Descriptor() ([]byte, []int)

func (*TopicResp) GetAllow

func (m *TopicResp) GetAllow() bool

func (*TopicResp) ProtoMessage

func (*TopicResp) ProtoMessage()

func (*TopicResp) Reset

func (m *TopicResp) Reset()

func (*TopicResp) String

func (m *TopicResp) String() string

Jump to

Keyboard shortcuts

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