auth

package
v0.12.15 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const C_Session int64 = 536472648
View Source
const C_User int64 = 765557111

Variables

View Source
var PoolSession = poolSession{}
View Source
var PoolUser = poolUser{}

Functions

This section is empty.

Types

type Session

type Session struct {
	ID       string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Clone

func (x *Session) Clone() *Session

func (*Session) DeepCopy

func (x *Session) DeepCopy(z *Session)

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetID

func (x *Session) GetID() string

func (*Session) GetUsername

func (x *Session) GetUsername() string

func (*Session) Marshal

func (x *Session) Marshal() ([]byte, error)

func (*Session) MarshalJSON

func (x *Session) MarshalJSON() ([]byte, error)

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) PushToContext

func (x *Session) PushToContext(ctx *edge.RequestCtx)

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

func (*Session) Unmarshal

func (x *Session) Unmarshal(b []byte) error

func (*Session) UnmarshalJSON

func (x *Session) UnmarshalJSON(b []byte) error

type SessionLocalRepo

type SessionLocalRepo struct {
	// contains filtered or unexported fields
}

func NewSessionLocalRepo

func NewSessionLocalRepo(s rony.Store) *SessionLocalRepo

func (*SessionLocalRepo) Create

func (r *SessionLocalRepo) Create(m *Session) error

func (*SessionLocalRepo) CreateWithTxn

func (r *SessionLocalRepo) CreateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Session) (err error)

func (*SessionLocalRepo) Delete

func (r *SessionLocalRepo) Delete(id string) error

func (*SessionLocalRepo) DeleteWithTxn

func (r *SessionLocalRepo) DeleteWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id string) error

func (*SessionLocalRepo) Iter

func (r *SessionLocalRepo) Iter(
	pk SessionPrimaryKey, ito *store.IterOption, cb func(m *Session) bool,
) error

func (*SessionLocalRepo) IterWithTxn

func (r *SessionLocalRepo) IterWithTxn(
	txn *rony.StoreTxn, alloc *tools.Allocator, offset SessionPrimaryKey, ito *store.IterOption, cb func(m *Session) bool,
) error

func (*SessionLocalRepo) List

func (r *SessionLocalRepo) List(
	pk SessionPrimaryKey, lo *store.ListOption, cond func(m *Session) bool,
) ([]*Session, error)

func (*SessionLocalRepo) ListByUsername

func (r *SessionLocalRepo) ListByUsername(username string, lo *store.ListOption, cond func(*Session) bool) ([]*Session, error)

func (*SessionLocalRepo) ListWithTxn

func (r *SessionLocalRepo) ListWithTxn(
	txn *rony.StoreTxn, alloc *tools.Allocator, offset SessionPrimaryKey, lo *store.ListOption, cond func(m *Session) bool,
) ([]*Session, error)

func (*SessionLocalRepo) Read

func (r *SessionLocalRepo) Read(id string, m *Session) (*Session, error)

func (*SessionLocalRepo) ReadWithTxn

func (r *SessionLocalRepo) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id string, m *Session) (*Session, error)

func (*SessionLocalRepo) Save

func (r *SessionLocalRepo) Save(m *Session) error

func (*SessionLocalRepo) SaveWithTxn

func (r *SessionLocalRepo) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Session) (err error)

func (*SessionLocalRepo) Update

func (r *SessionLocalRepo) Update(id string, m *Session) error

func (*SessionLocalRepo) UpdateWithTxn

func (r *SessionLocalRepo) UpdateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Session) error

type SessionPK

type SessionPK struct {
	ID string
}

type SessionPrimaryKey

type SessionPrimaryKey interface {
	// contains filtered or unexported methods
}

type User

type User struct {
	Username  string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	Password  string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	FirstName string `protobuf:"bytes,3,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
	LastName  string `protobuf:"bytes,4,opt,name=LastName,proto3" json:"LastName,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Clone

func (x *User) Clone() *User

func (*User) DeepCopy

func (x *User) DeepCopy(z *User)

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) Marshal

func (x *User) Marshal() ([]byte, error)

func (*User) MarshalJSON

func (x *User) MarshalJSON() ([]byte, error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) PushToContext

func (x *User) PushToContext(ctx *edge.RequestCtx)

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Unmarshal

func (x *User) Unmarshal(b []byte) error

func (*User) UnmarshalJSON

func (x *User) UnmarshalJSON(b []byte) error

type UserLocalRepo

type UserLocalRepo struct {
	// contains filtered or unexported fields
}

func NewUserLocalRepo

func NewUserLocalRepo(s rony.Store) *UserLocalRepo

func (*UserLocalRepo) Create

func (r *UserLocalRepo) Create(m *User) error

func (*UserLocalRepo) CreateWithTxn

func (r *UserLocalRepo) CreateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *User) (err error)

func (*UserLocalRepo) Delete

func (r *UserLocalRepo) Delete(username string) error

func (*UserLocalRepo) DeleteWithTxn

func (r *UserLocalRepo) DeleteWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, username string) error

func (*UserLocalRepo) Iter

func (r *UserLocalRepo) Iter(
	pk UserPrimaryKey, ito *store.IterOption, cb func(m *User) bool,
) error

func (*UserLocalRepo) IterWithTxn

func (r *UserLocalRepo) IterWithTxn(
	txn *rony.StoreTxn, alloc *tools.Allocator, offset UserPrimaryKey, ito *store.IterOption, cb func(m *User) bool,
) error

func (*UserLocalRepo) List

func (r *UserLocalRepo) List(
	pk UserPrimaryKey, lo *store.ListOption, cond func(m *User) bool,
) ([]*User, error)

func (*UserLocalRepo) ListWithTxn

func (r *UserLocalRepo) ListWithTxn(
	txn *rony.StoreTxn, alloc *tools.Allocator, offset UserPrimaryKey, lo *store.ListOption, cond func(m *User) bool,
) ([]*User, error)

func (*UserLocalRepo) Read

func (r *UserLocalRepo) Read(username string, m *User) (*User, error)

func (*UserLocalRepo) ReadWithTxn

func (r *UserLocalRepo) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, username string, m *User) (*User, error)

func (*UserLocalRepo) Save

func (r *UserLocalRepo) Save(m *User) error

func (*UserLocalRepo) SaveWithTxn

func (r *UserLocalRepo) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *User) (err error)

func (*UserLocalRepo) Update

func (r *UserLocalRepo) Update(username string, m *User) error

func (*UserLocalRepo) UpdateWithTxn

func (r *UserLocalRepo) UpdateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *User) error

type UserPK

type UserPK struct {
	Username string
}

type UserPrimaryKey

type UserPrimaryKey interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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