authv1

package
v0.0.0-...-56f6100 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_auth_v1_store_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Cred []byte  `protobuf:"bytes,2,opt,name=cred" json:"cred,omitempty"`
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

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

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetCred

func (x *Credential) GetCred() []byte

func (*Credential) GetName

func (x *Credential) GetName() string

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type Store

type Store struct {
	Sessions map[string]*TokenInfo `` /* 136-byte string literal not displayed */
	Users    map[int64]*UserInfo   `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Store) Descriptor deprecated

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

Deprecated: Use Store.ProtoReflect.Descriptor instead.

func (*Store) GetSessions

func (x *Store) GetSessions() map[string]*TokenInfo

func (*Store) GetUsers

func (x *Store) GetUsers() map[int64]*UserInfo

func (*Store) ProtoMessage

func (*Store) ProtoMessage()

func (*Store) ProtoReflect

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

func (*Store) Reset

func (x *Store) Reset()

func (*Store) String

func (x *Store) String() string

type TokenInfo

type TokenInfo struct {
	SessionId   *string                `protobuf:"bytes,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"`
	Created     *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created" json:"created,omitempty"`
	UserId      *int64                 `protobuf:"varint,3,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	SessionData []byte                 `protobuf:"bytes,4,opt,name=session_data,json=sessionData" json:"session_data,omitempty"`
	CredName    *string                `protobuf:"bytes,5,opt,name=cred_name,json=credName" json:"cred_name,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenInfo) Descriptor deprecated

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

Deprecated: Use TokenInfo.ProtoReflect.Descriptor instead.

func (*TokenInfo) GetCreated

func (x *TokenInfo) GetCreated() *timestamppb.Timestamp

func (*TokenInfo) GetCredName

func (x *TokenInfo) GetCredName() string

func (*TokenInfo) GetSessionData

func (x *TokenInfo) GetSessionData() []byte

func (*TokenInfo) GetSessionId

func (x *TokenInfo) GetSessionId() string

func (*TokenInfo) GetUserId

func (x *TokenInfo) GetUserId() int64

func (*TokenInfo) ProtoMessage

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) ProtoReflect

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

func (*TokenInfo) Reset

func (x *TokenInfo) Reset()

func (*TokenInfo) String

func (x *TokenInfo) String() string

type UserInfo

type UserInfo struct {
	UserId   *int64        `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	Username *string       `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
	Creds    []*Credential `protobuf:"bytes,4,rep,name=creds" json:"creds,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetCreds

func (x *UserInfo) GetCreds() []*Credential

func (*UserInfo) GetUserId

func (x *UserInfo) GetUserId() int64

func (*UserInfo) GetUsername

func (x *UserInfo) GetUsername() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

Jump to

Keyboard shortcuts

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