Documentation ¶
Index ¶
- func OpenMySql(user, pass, host string, port uint, dbname string) (*sql.DB, error)
- type PrivateKeys
- func (t *PrivateKeys) Commit() error
- func (t *PrivateKeys) Delete(u *PrivateKeysRecord) (int64, error)
- func (t *PrivateKeys) GetByData(Data string) ([]*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetByGmtCreate(GmtCreate time.Time) ([]*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetByGmtModified(GmtModified time.Time) ([]*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetById(Id int64) ([]*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetByName(Name string) ([]*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetByType(Type string) ([]*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetFirstByData(Data string) (*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetFirstByGmtCreate(GmtCreate time.Time) (*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetFirstByGmtModified(GmtModified time.Time) (*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetFirstById(Id int64) (*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetFirstByName(Name string) (*PrivateKeysRecord, error)
- func (t *PrivateKeys) GetFirstByType(Type string) (*PrivateKeysRecord, error)
- func (t *PrivateKeys) Post(u *PrivateKeysRecord) (int64, error)
- func (t *PrivateKeys) Put(u *PrivateKeysRecord) (int64, error)
- func (t *PrivateKeys) Rollback() error
- type PrivateKeysRecord
- type PubkeyPrikeyMap
- func (t *PubkeyPrikeyMap) Commit() error
- func (t *PubkeyPrikeyMap) Delete(u *PubkeyPrikeyMapRecord) (int64, error)
- func (t *PubkeyPrikeyMap) GetByGmtCreate(GmtCreate time.Time) ([]*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetByGmtModified(GmtModified time.Time) ([]*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetById(Id int64) ([]*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetByPrivateKeyId(PrivateKeyId int64) ([]*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetByPubkeyId(PubkeyId int64) ([]*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetFirstByGmtCreate(GmtCreate time.Time) (*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetFirstByGmtModified(GmtModified time.Time) (*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetFirstById(Id int64) (*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetFirstByPrivateKeyId(PrivateKeyId int64) (*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) GetFirstByPubkeyId(PubkeyId int64) (*PubkeyPrikeyMapRecord, error)
- func (t *PubkeyPrikeyMap) Post(u *PubkeyPrikeyMapRecord) (int64, error)
- func (t *PubkeyPrikeyMap) Put(u *PubkeyPrikeyMapRecord) (int64, error)
- func (t *PubkeyPrikeyMap) Rollback() error
- type PubkeyPrikeyMapRecord
- type PubkeyUpstreamMap
- func (t *PubkeyUpstreamMap) Commit() error
- func (t *PubkeyUpstreamMap) Delete(u *PubkeyUpstreamMapRecord) (int64, error)
- func (t *PubkeyUpstreamMap) GetByGmtCreate(GmtCreate time.Time) ([]*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetByGmtModified(GmtModified time.Time) ([]*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetById(Id int64) ([]*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetByPubkeyId(PubkeyId int64) ([]*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetByUpstreamId(UpstreamId int64) ([]*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetFirstByGmtCreate(GmtCreate time.Time) (*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetFirstByGmtModified(GmtModified time.Time) (*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetFirstById(Id int64) (*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetFirstByPubkeyId(PubkeyId int64) (*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) GetFirstByUpstreamId(UpstreamId int64) (*PubkeyUpstreamMapRecord, error)
- func (t *PubkeyUpstreamMap) Post(u *PubkeyUpstreamMapRecord) (int64, error)
- func (t *PubkeyUpstreamMap) Put(u *PubkeyUpstreamMapRecord) (int64, error)
- func (t *PubkeyUpstreamMap) Rollback() error
- type PubkeyUpstreamMapRecord
- type PublicKeys
- func (t *PublicKeys) Commit() error
- func (t *PublicKeys) Delete(u *PublicKeysRecord) (int64, error)
- func (t *PublicKeys) GetByData(Data string) ([]*PublicKeysRecord, error)
- func (t *PublicKeys) GetByGmtCreate(GmtCreate time.Time) ([]*PublicKeysRecord, error)
- func (t *PublicKeys) GetByGmtModified(GmtModified time.Time) ([]*PublicKeysRecord, error)
- func (t *PublicKeys) GetById(Id int64) ([]*PublicKeysRecord, error)
- func (t *PublicKeys) GetByName(Name string) ([]*PublicKeysRecord, error)
- func (t *PublicKeys) GetByType(Type string) ([]*PublicKeysRecord, error)
- func (t *PublicKeys) GetFirstByData(Data string) (*PublicKeysRecord, error)
- func (t *PublicKeys) GetFirstByGmtCreate(GmtCreate time.Time) (*PublicKeysRecord, error)
- func (t *PublicKeys) GetFirstByGmtModified(GmtModified time.Time) (*PublicKeysRecord, error)
- func (t *PublicKeys) GetFirstById(Id int64) (*PublicKeysRecord, error)
- func (t *PublicKeys) GetFirstByName(Name string) (*PublicKeysRecord, error)
- func (t *PublicKeys) GetFirstByType(Type string) (*PublicKeysRecord, error)
- func (t *PublicKeys) Post(u *PublicKeysRecord) (int64, error)
- func (t *PublicKeys) Put(u *PublicKeysRecord) (int64, error)
- func (t *PublicKeys) Rollback() error
- type PublicKeysRecord
- type Server
- func (t *Server) Commit() error
- func (t *Server) Delete(u *ServerRecord) (int64, error)
- func (t *Server) GetByAddress(Address string) ([]*ServerRecord, error)
- func (t *Server) GetByGmtCreate(GmtCreate time.Time) ([]*ServerRecord, error)
- func (t *Server) GetByGmtModified(GmtModified time.Time) ([]*ServerRecord, error)
- func (t *Server) GetById(Id int64) ([]*ServerRecord, error)
- func (t *Server) GetByName(Name string) ([]*ServerRecord, error)
- func (t *Server) GetFirstByAddress(Address string) (*ServerRecord, error)
- func (t *Server) GetFirstByGmtCreate(GmtCreate time.Time) (*ServerRecord, error)
- func (t *Server) GetFirstByGmtModified(GmtModified time.Time) (*ServerRecord, error)
- func (t *Server) GetFirstById(Id int64) (*ServerRecord, error)
- func (t *Server) GetFirstByName(Name string) (*ServerRecord, error)
- func (t *Server) Post(u *ServerRecord) (int64, error)
- func (t *Server) Put(u *ServerRecord) (int64, error)
- func (t *Server) Rollback() error
- type ServerRecord
- type Upstream
- func (t *Upstream) Commit() error
- func (t *Upstream) Delete(u *UpstreamRecord) (int64, error)
- func (t *Upstream) GetByGmtCreate(GmtCreate time.Time) ([]*UpstreamRecord, error)
- func (t *Upstream) GetByGmtModified(GmtModified time.Time) ([]*UpstreamRecord, error)
- func (t *Upstream) GetById(Id int64) ([]*UpstreamRecord, error)
- func (t *Upstream) GetByName(Name string) ([]*UpstreamRecord, error)
- func (t *Upstream) GetByPrivateKeyId(PrivateKeyId int64) ([]*UpstreamRecord, error)
- func (t *Upstream) GetByServerId(ServerId int64) ([]*UpstreamRecord, error)
- func (t *Upstream) GetByUsername(Username string) ([]*UpstreamRecord, error)
- func (t *Upstream) GetFirstByGmtCreate(GmtCreate time.Time) (*UpstreamRecord, error)
- func (t *Upstream) GetFirstByGmtModified(GmtModified time.Time) (*UpstreamRecord, error)
- func (t *Upstream) GetFirstById(Id int64) (*UpstreamRecord, error)
- func (t *Upstream) GetFirstByName(Name string) (*UpstreamRecord, error)
- func (t *Upstream) GetFirstByPrivateKeyId(PrivateKeyId int64) (*UpstreamRecord, error)
- func (t *Upstream) GetFirstByServerId(ServerId int64) (*UpstreamRecord, error)
- func (t *Upstream) GetFirstByUsername(Username string) (*UpstreamRecord, error)
- func (t *Upstream) Post(u *UpstreamRecord) (int64, error)
- func (t *Upstream) Put(u *UpstreamRecord) (int64, error)
- func (t *Upstream) Rollback() error
- type UpstreamRecord
- type UserUpstreamMap
- func (t *UserUpstreamMap) Commit() error
- func (t *UserUpstreamMap) Delete(u *UserUpstreamMapRecord) (int64, error)
- func (t *UserUpstreamMap) GetByGmtCreate(GmtCreate time.Time) ([]*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetByGmtModified(GmtModified time.Time) ([]*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetById(Id int64) ([]*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetByUpstreamId(UpstreamId int64) ([]*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetByUsername(Username string) ([]*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetFirstByGmtCreate(GmtCreate time.Time) (*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetFirstByGmtModified(GmtModified time.Time) (*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetFirstById(Id int64) (*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetFirstByUpstreamId(UpstreamId int64) (*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) GetFirstByUsername(Username string) (*UserUpstreamMapRecord, error)
- func (t *UserUpstreamMap) Post(u *UserUpstreamMapRecord) (int64, error)
- func (t *UserUpstreamMap) Put(u *UserUpstreamMapRecord) (int64, error)
- func (t *UserUpstreamMap) Rollback() error
- type UserUpstreamMapRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKeys ¶
type PrivateKeys struct {
// contains filtered or unexported fields
}
func NewPrivateKeys ¶
func NewPrivateKeys(db *sql.DB) *PrivateKeys
func (*PrivateKeys) Commit ¶
func (t *PrivateKeys) Commit() error
Function to help make the api feel cleaner
func (*PrivateKeys) Delete ¶
func (t *PrivateKeys) Delete(u *PrivateKeysRecord) (int64, error)
func (*PrivateKeys) GetByData ¶
func (t *PrivateKeys) GetByData(Data string) ([]*PrivateKeysRecord, error)
func (*PrivateKeys) GetByGmtCreate ¶
func (t *PrivateKeys) GetByGmtCreate(GmtCreate time.Time) ([]*PrivateKeysRecord, error)
func (*PrivateKeys) GetByGmtModified ¶
func (t *PrivateKeys) GetByGmtModified(GmtModified time.Time) ([]*PrivateKeysRecord, error)
func (*PrivateKeys) GetById ¶
func (t *PrivateKeys) GetById(Id int64) ([]*PrivateKeysRecord, error)
func (*PrivateKeys) GetByName ¶
func (t *PrivateKeys) GetByName(Name string) ([]*PrivateKeysRecord, error)
func (*PrivateKeys) GetByType ¶
func (t *PrivateKeys) GetByType(Type string) ([]*PrivateKeysRecord, error)
func (*PrivateKeys) GetFirstByData ¶
func (t *PrivateKeys) GetFirstByData(Data string) (*PrivateKeysRecord, error)
func (*PrivateKeys) GetFirstByGmtCreate ¶
func (t *PrivateKeys) GetFirstByGmtCreate(GmtCreate time.Time) (*PrivateKeysRecord, error)
func (*PrivateKeys) GetFirstByGmtModified ¶
func (t *PrivateKeys) GetFirstByGmtModified(GmtModified time.Time) (*PrivateKeysRecord, error)
func (*PrivateKeys) GetFirstById ¶
func (t *PrivateKeys) GetFirstById(Id int64) (*PrivateKeysRecord, error)
func (*PrivateKeys) GetFirstByName ¶
func (t *PrivateKeys) GetFirstByName(Name string) (*PrivateKeysRecord, error)
func (*PrivateKeys) GetFirstByType ¶
func (t *PrivateKeys) GetFirstByType(Type string) (*PrivateKeysRecord, error)
func (*PrivateKeys) Post ¶
func (t *PrivateKeys) Post(u *PrivateKeysRecord) (int64, error)
func (*PrivateKeys) Put ¶
func (t *PrivateKeys) Put(u *PrivateKeysRecord) (int64, error)
func (*PrivateKeys) Rollback ¶
func (t *PrivateKeys) Rollback() error
type PrivateKeysRecord ¶
type PubkeyPrikeyMap ¶
type PubkeyPrikeyMap struct {
// contains filtered or unexported fields
}
func NewPubkeyPrikeyMap ¶
func NewPubkeyPrikeyMap(db *sql.DB) *PubkeyPrikeyMap
func (*PubkeyPrikeyMap) Commit ¶
func (t *PubkeyPrikeyMap) Commit() error
Function to help make the api feel cleaner
func (*PubkeyPrikeyMap) Delete ¶
func (t *PubkeyPrikeyMap) Delete(u *PubkeyPrikeyMapRecord) (int64, error)
func (*PubkeyPrikeyMap) GetByGmtCreate ¶
func (t *PubkeyPrikeyMap) GetByGmtCreate(GmtCreate time.Time) ([]*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetByGmtModified ¶
func (t *PubkeyPrikeyMap) GetByGmtModified(GmtModified time.Time) ([]*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetById ¶
func (t *PubkeyPrikeyMap) GetById(Id int64) ([]*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetByPrivateKeyId ¶
func (t *PubkeyPrikeyMap) GetByPrivateKeyId(PrivateKeyId int64) ([]*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetByPubkeyId ¶
func (t *PubkeyPrikeyMap) GetByPubkeyId(PubkeyId int64) ([]*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetFirstByGmtCreate ¶
func (t *PubkeyPrikeyMap) GetFirstByGmtCreate(GmtCreate time.Time) (*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetFirstByGmtModified ¶
func (t *PubkeyPrikeyMap) GetFirstByGmtModified(GmtModified time.Time) (*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetFirstById ¶
func (t *PubkeyPrikeyMap) GetFirstById(Id int64) (*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetFirstByPrivateKeyId ¶
func (t *PubkeyPrikeyMap) GetFirstByPrivateKeyId(PrivateKeyId int64) (*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) GetFirstByPubkeyId ¶
func (t *PubkeyPrikeyMap) GetFirstByPubkeyId(PubkeyId int64) (*PubkeyPrikeyMapRecord, error)
func (*PubkeyPrikeyMap) Post ¶
func (t *PubkeyPrikeyMap) Post(u *PubkeyPrikeyMapRecord) (int64, error)
func (*PubkeyPrikeyMap) Put ¶
func (t *PubkeyPrikeyMap) Put(u *PubkeyPrikeyMapRecord) (int64, error)
func (*PubkeyPrikeyMap) Rollback ¶
func (t *PubkeyPrikeyMap) Rollback() error
type PubkeyPrikeyMapRecord ¶
type PubkeyUpstreamMap ¶
type PubkeyUpstreamMap struct {
// contains filtered or unexported fields
}
func NewPubkeyUpstreamMap ¶
func NewPubkeyUpstreamMap(db *sql.DB) *PubkeyUpstreamMap
func (*PubkeyUpstreamMap) Commit ¶
func (t *PubkeyUpstreamMap) Commit() error
Function to help make the api feel cleaner
func (*PubkeyUpstreamMap) Delete ¶
func (t *PubkeyUpstreamMap) Delete(u *PubkeyUpstreamMapRecord) (int64, error)
func (*PubkeyUpstreamMap) GetByGmtCreate ¶
func (t *PubkeyUpstreamMap) GetByGmtCreate(GmtCreate time.Time) ([]*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetByGmtModified ¶
func (t *PubkeyUpstreamMap) GetByGmtModified(GmtModified time.Time) ([]*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetById ¶
func (t *PubkeyUpstreamMap) GetById(Id int64) ([]*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetByPubkeyId ¶
func (t *PubkeyUpstreamMap) GetByPubkeyId(PubkeyId int64) ([]*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetByUpstreamId ¶
func (t *PubkeyUpstreamMap) GetByUpstreamId(UpstreamId int64) ([]*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetFirstByGmtCreate ¶
func (t *PubkeyUpstreamMap) GetFirstByGmtCreate(GmtCreate time.Time) (*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetFirstByGmtModified ¶
func (t *PubkeyUpstreamMap) GetFirstByGmtModified(GmtModified time.Time) (*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetFirstById ¶
func (t *PubkeyUpstreamMap) GetFirstById(Id int64) (*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetFirstByPubkeyId ¶
func (t *PubkeyUpstreamMap) GetFirstByPubkeyId(PubkeyId int64) (*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) GetFirstByUpstreamId ¶
func (t *PubkeyUpstreamMap) GetFirstByUpstreamId(UpstreamId int64) (*PubkeyUpstreamMapRecord, error)
func (*PubkeyUpstreamMap) Post ¶
func (t *PubkeyUpstreamMap) Post(u *PubkeyUpstreamMapRecord) (int64, error)
func (*PubkeyUpstreamMap) Put ¶
func (t *PubkeyUpstreamMap) Put(u *PubkeyUpstreamMapRecord) (int64, error)
func (*PubkeyUpstreamMap) Rollback ¶
func (t *PubkeyUpstreamMap) Rollback() error
type PubkeyUpstreamMapRecord ¶
type PublicKeys ¶
type PublicKeys struct {
// contains filtered or unexported fields
}
func NewPublicKeys ¶
func NewPublicKeys(db *sql.DB) *PublicKeys
func (*PublicKeys) Commit ¶
func (t *PublicKeys) Commit() error
Function to help make the api feel cleaner
func (*PublicKeys) Delete ¶
func (t *PublicKeys) Delete(u *PublicKeysRecord) (int64, error)
func (*PublicKeys) GetByData ¶
func (t *PublicKeys) GetByData(Data string) ([]*PublicKeysRecord, error)
func (*PublicKeys) GetByGmtCreate ¶
func (t *PublicKeys) GetByGmtCreate(GmtCreate time.Time) ([]*PublicKeysRecord, error)
func (*PublicKeys) GetByGmtModified ¶
func (t *PublicKeys) GetByGmtModified(GmtModified time.Time) ([]*PublicKeysRecord, error)
func (*PublicKeys) GetById ¶
func (t *PublicKeys) GetById(Id int64) ([]*PublicKeysRecord, error)
func (*PublicKeys) GetByName ¶
func (t *PublicKeys) GetByName(Name string) ([]*PublicKeysRecord, error)
func (*PublicKeys) GetByType ¶
func (t *PublicKeys) GetByType(Type string) ([]*PublicKeysRecord, error)
func (*PublicKeys) GetFirstByData ¶
func (t *PublicKeys) GetFirstByData(Data string) (*PublicKeysRecord, error)
func (*PublicKeys) GetFirstByGmtCreate ¶
func (t *PublicKeys) GetFirstByGmtCreate(GmtCreate time.Time) (*PublicKeysRecord, error)
func (*PublicKeys) GetFirstByGmtModified ¶
func (t *PublicKeys) GetFirstByGmtModified(GmtModified time.Time) (*PublicKeysRecord, error)
func (*PublicKeys) GetFirstById ¶
func (t *PublicKeys) GetFirstById(Id int64) (*PublicKeysRecord, error)
func (*PublicKeys) GetFirstByName ¶
func (t *PublicKeys) GetFirstByName(Name string) (*PublicKeysRecord, error)
func (*PublicKeys) GetFirstByType ¶
func (t *PublicKeys) GetFirstByType(Type string) (*PublicKeysRecord, error)
func (*PublicKeys) Post ¶
func (t *PublicKeys) Post(u *PublicKeysRecord) (int64, error)
func (*PublicKeys) Put ¶
func (t *PublicKeys) Put(u *PublicKeysRecord) (int64, error)
func (*PublicKeys) Rollback ¶
func (t *PublicKeys) Rollback() error
type PublicKeysRecord ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetByAddress ¶
func (t *Server) GetByAddress(Address string) ([]*ServerRecord, error)
func (*Server) GetByGmtCreate ¶
func (t *Server) GetByGmtCreate(GmtCreate time.Time) ([]*ServerRecord, error)
func (*Server) GetByGmtModified ¶
func (t *Server) GetByGmtModified(GmtModified time.Time) ([]*ServerRecord, error)
func (*Server) GetFirstByAddress ¶
func (t *Server) GetFirstByAddress(Address string) (*ServerRecord, error)
func (*Server) GetFirstByGmtCreate ¶
func (t *Server) GetFirstByGmtCreate(GmtCreate time.Time) (*ServerRecord, error)
func (*Server) GetFirstByGmtModified ¶
func (t *Server) GetFirstByGmtModified(GmtModified time.Time) (*ServerRecord, error)
func (*Server) GetFirstById ¶
func (t *Server) GetFirstById(Id int64) (*ServerRecord, error)
func (*Server) GetFirstByName ¶
func (t *Server) GetFirstByName(Name string) (*ServerRecord, error)
type ServerRecord ¶
type Upstream ¶
type Upstream struct {
// contains filtered or unexported fields
}
func NewUpstream ¶
func (*Upstream) GetByGmtCreate ¶
func (t *Upstream) GetByGmtCreate(GmtCreate time.Time) ([]*UpstreamRecord, error)
func (*Upstream) GetByGmtModified ¶
func (t *Upstream) GetByGmtModified(GmtModified time.Time) ([]*UpstreamRecord, error)
func (*Upstream) GetByPrivateKeyId ¶
func (t *Upstream) GetByPrivateKeyId(PrivateKeyId int64) ([]*UpstreamRecord, error)
func (*Upstream) GetByServerId ¶
func (t *Upstream) GetByServerId(ServerId int64) ([]*UpstreamRecord, error)
func (*Upstream) GetByUsername ¶
func (t *Upstream) GetByUsername(Username string) ([]*UpstreamRecord, error)
func (*Upstream) GetFirstByGmtCreate ¶
func (t *Upstream) GetFirstByGmtCreate(GmtCreate time.Time) (*UpstreamRecord, error)
func (*Upstream) GetFirstByGmtModified ¶
func (t *Upstream) GetFirstByGmtModified(GmtModified time.Time) (*UpstreamRecord, error)
func (*Upstream) GetFirstById ¶
func (t *Upstream) GetFirstById(Id int64) (*UpstreamRecord, error)
func (*Upstream) GetFirstByName ¶
func (t *Upstream) GetFirstByName(Name string) (*UpstreamRecord, error)
func (*Upstream) GetFirstByPrivateKeyId ¶
func (t *Upstream) GetFirstByPrivateKeyId(PrivateKeyId int64) (*UpstreamRecord, error)
func (*Upstream) GetFirstByServerId ¶
func (t *Upstream) GetFirstByServerId(ServerId int64) (*UpstreamRecord, error)
func (*Upstream) GetFirstByUsername ¶
func (t *Upstream) GetFirstByUsername(Username string) (*UpstreamRecord, error)
type UpstreamRecord ¶
type UserUpstreamMap ¶
type UserUpstreamMap struct {
// contains filtered or unexported fields
}
func NewUserUpstreamMap ¶
func NewUserUpstreamMap(db *sql.DB) *UserUpstreamMap
func (*UserUpstreamMap) Commit ¶
func (t *UserUpstreamMap) Commit() error
Function to help make the api feel cleaner
func (*UserUpstreamMap) Delete ¶
func (t *UserUpstreamMap) Delete(u *UserUpstreamMapRecord) (int64, error)
func (*UserUpstreamMap) GetByGmtCreate ¶
func (t *UserUpstreamMap) GetByGmtCreate(GmtCreate time.Time) ([]*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetByGmtModified ¶
func (t *UserUpstreamMap) GetByGmtModified(GmtModified time.Time) ([]*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetById ¶
func (t *UserUpstreamMap) GetById(Id int64) ([]*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetByUpstreamId ¶
func (t *UserUpstreamMap) GetByUpstreamId(UpstreamId int64) ([]*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetByUsername ¶
func (t *UserUpstreamMap) GetByUsername(Username string) ([]*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetFirstByGmtCreate ¶
func (t *UserUpstreamMap) GetFirstByGmtCreate(GmtCreate time.Time) (*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetFirstByGmtModified ¶
func (t *UserUpstreamMap) GetFirstByGmtModified(GmtModified time.Time) (*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetFirstById ¶
func (t *UserUpstreamMap) GetFirstById(Id int64) (*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetFirstByUpstreamId ¶
func (t *UserUpstreamMap) GetFirstByUpstreamId(UpstreamId int64) (*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) GetFirstByUsername ¶
func (t *UserUpstreamMap) GetFirstByUsername(Username string) (*UserUpstreamMapRecord, error)
func (*UserUpstreamMap) Post ¶
func (t *UserUpstreamMap) Post(u *UserUpstreamMapRecord) (int64, error)
func (*UserUpstreamMap) Put ¶
func (t *UserUpstreamMap) Put(u *UserUpstreamMapRecord) (int64, error)
func (*UserUpstreamMap) Rollback ¶
func (t *UserUpstreamMap) Rollback() error
Click to show internal directories.
Click to hide internal directories.