Documentation
¶
Index ¶
- Constants
- Variables
- type Session
- func (x *Session) Clone() *Session
- func (x *Session) DeepCopy(z *Session)
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetID() string
- func (x *Session) GetUsername() string
- func (x *Session) Marshal() ([]byte, error)
- func (x *Session) MarshalJSON() ([]byte, error)
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) PushToContext(ctx *edge.RequestCtx)
- func (x *Session) Reset()
- func (x *Session) String() string
- func (x *Session) Unmarshal(b []byte) error
- func (x *Session) UnmarshalJSON(b []byte) error
- type SessionLocalRepo
- func (r *SessionLocalRepo) Create(m *Session) error
- func (r *SessionLocalRepo) CreateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Session) (err error)
- func (r *SessionLocalRepo) Delete(id string) error
- func (r *SessionLocalRepo) DeleteWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id string) error
- func (r *SessionLocalRepo) Iter(pk SessionPrimaryKey, ito *store.IterOption, cb func(m *Session) bool) error
- func (r *SessionLocalRepo) IterWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, offset SessionPrimaryKey, ...) error
- func (r *SessionLocalRepo) List(pk SessionPrimaryKey, lo *store.ListOption, cond func(m *Session) bool) ([]*Session, error)
- func (r *SessionLocalRepo) ListByUsername(username string, lo *store.ListOption, cond func(*Session) bool) ([]*Session, error)
- func (r *SessionLocalRepo) ListWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, offset SessionPrimaryKey, ...) ([]*Session, error)
- func (r *SessionLocalRepo) Read(id string, m *Session) (*Session, error)
- func (r *SessionLocalRepo) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id string, m *Session) (*Session, error)
- func (r *SessionLocalRepo) Save(m *Session) error
- func (r *SessionLocalRepo) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Session) (err error)
- func (r *SessionLocalRepo) Update(id string, m *Session) error
- func (r *SessionLocalRepo) UpdateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Session) error
- type SessionPK
- type SessionPrimaryKey
- type User
- func (x *User) Clone() *User
- func (x *User) DeepCopy(z *User)
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetFirstName() string
- func (x *User) GetLastName() string
- func (x *User) GetPassword() string
- func (x *User) GetUsername() string
- func (x *User) Marshal() ([]byte, error)
- func (x *User) MarshalJSON() ([]byte, error)
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) PushToContext(ctx *edge.RequestCtx)
- func (x *User) Reset()
- func (x *User) String() string
- func (x *User) Unmarshal(b []byte) error
- func (x *User) UnmarshalJSON(b []byte) error
- type UserLocalRepo
- func (r *UserLocalRepo) Create(m *User) error
- func (r *UserLocalRepo) CreateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *User) (err error)
- func (r *UserLocalRepo) Delete(username string) error
- func (r *UserLocalRepo) DeleteWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, username string) error
- func (r *UserLocalRepo) Iter(pk UserPrimaryKey, ito *store.IterOption, cb func(m *User) bool) error
- func (r *UserLocalRepo) IterWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, offset UserPrimaryKey, ...) error
- func (r *UserLocalRepo) List(pk UserPrimaryKey, lo *store.ListOption, cond func(m *User) bool) ([]*User, error)
- func (r *UserLocalRepo) ListWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, offset UserPrimaryKey, ...) ([]*User, error)
- func (r *UserLocalRepo) Read(username string, m *User) (*User, error)
- func (r *UserLocalRepo) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, username string, m *User) (*User, error)
- func (r *UserLocalRepo) Save(m *User) error
- func (r *UserLocalRepo) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *User) (err error)
- func (r *UserLocalRepo) Update(username string, m *User) error
- func (r *UserLocalRepo) UpdateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *User) error
- type UserPK
- type UserPrimaryKey
Constants ¶
View Source
const C_Session int64 = 536472648
View Source
const C_User int64 = 765557111
Variables ¶
View Source
var File_auth_proto protoreflect.FileDescriptor
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) Descriptor
deprecated
func (*Session) GetUsername ¶
func (*Session) MarshalJSON ¶
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) UnmarshalJSON ¶
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 (*SessionLocalRepo) Delete ¶
func (r *SessionLocalRepo) Delete(id string) error
func (*SessionLocalRepo) DeleteWithTxn ¶
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 (*SessionLocalRepo) Save ¶
func (r *SessionLocalRepo) Save(m *Session) error
func (*SessionLocalRepo) SaveWithTxn ¶
func (*SessionLocalRepo) UpdateWithTxn ¶
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) Descriptor
deprecated
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
func (*User) GetPassword ¶
func (*User) GetUsername ¶
func (*User) MarshalJSON ¶
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) UnmarshalJSON ¶
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 (*UserLocalRepo) Delete ¶
func (r *UserLocalRepo) Delete(username string) error
func (*UserLocalRepo) DeleteWithTxn ¶
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) ReadWithTxn ¶
func (*UserLocalRepo) Save ¶
func (r *UserLocalRepo) Save(m *User) error
func (*UserLocalRepo) SaveWithTxn ¶
func (*UserLocalRepo) UpdateWithTxn ¶
type UserPrimaryKey ¶
type UserPrimaryKey interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.