authpb

package
v0.0.0-...-7483216 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReplyCode_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "AUTHORIZE_ACK",
	}
	ReplyCode_value = map[string]int32{
		"UNSPECIFIED":   0,
		"AUTHORIZE_ACK": 1,
	}
)

Enum value maps for ReplyCode.

View Source
var (
	// optional cluster.Services reply_service = 60000;
	E_ReplyService = &file_auth_message_proto_extTypes[0]
	// optional auth.ReplyCode reply_code = 60001;
	E_ReplyCode = &file_auth_message_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_auth_message_proto protoreflect.FileDescriptor

Functions

func PackAuthorizeAck

func PackAuthorizeAck(msg *AuthorizeAck) (*nh.Reply, error)

Types

type AuthorizeAck

type AuthorizeAck struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizeAck) Descriptor deprecated

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

Deprecated: Use AuthorizeAck.ProtoReflect.Descriptor instead.

func (*AuthorizeAck) GetUserId

func (x *AuthorizeAck) GetUserId() string

func (*AuthorizeAck) ProtoMessage

func (*AuthorizeAck) ProtoMessage()

func (*AuthorizeAck) ProtoReflect

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

func (*AuthorizeAck) Reset

func (x *AuthorizeAck) Reset()

func (*AuthorizeAck) String

func (x *AuthorizeAck) String() string

type AuthorizeToken

type AuthorizeToken struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizeToken) Descriptor deprecated

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

Deprecated: Use AuthorizeToken.ProtoReflect.Descriptor instead.

func (*AuthorizeToken) GetToken

func (x *AuthorizeToken) GetToken() string

func (*AuthorizeToken) ProtoMessage

func (*AuthorizeToken) ProtoMessage()

func (*AuthorizeToken) ProtoReflect

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

func (*AuthorizeToken) Reset

func (x *AuthorizeToken) Reset()

func (*AuthorizeToken) String

func (x *AuthorizeToken) String() string

type ReplyCode

type ReplyCode int32
const (
	ReplyCode_UNSPECIFIED   ReplyCode = 0
	ReplyCode_AUTHORIZE_ACK ReplyCode = 1
)

func (ReplyCode) Descriptor

func (ReplyCode) Descriptor() protoreflect.EnumDescriptor

func (ReplyCode) Enum

func (x ReplyCode) Enum() *ReplyCode

func (ReplyCode) EnumDescriptor deprecated

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

Deprecated: Use ReplyCode.Descriptor instead.

func (ReplyCode) Number

func (x ReplyCode) Number() protoreflect.EnumNumber

func (ReplyCode) String

func (x ReplyCode) String() string

func (ReplyCode) Type

Jump to

Keyboard shortcuts

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