Documentation ¶
Index ¶
- type GormHandler
- func (g *GormHandler) Create(i interface{}) error
- func (g *GormHandler) Do(f func(*gorm.DB) (interface{}, error)) (interface{}, error)
- func (g *GormHandler) Get(i interface{}, q ...Query) error
- func (g *GormHandler) Gets(i interface{}, q ...Query) (int, error)
- func (g *GormHandler) Migrate(i interface{}) error
- func (g *GormHandler) Ping() error
- func (g *GormHandler) SetContext(key string, val interface{})
- func (g *GormHandler) Update(i interface{}) error
- type MongoHandler
- func (m *MongoHandler) Create(i interface{}) error
- func (m *MongoHandler) Get(i interface{}, q ...Query) error
- func (m *MongoHandler) Gets(i interface{}, q ...Query) (int, error)
- func (m *MongoHandler) Ping() error
- func (m *MongoHandler) SetContext(string, interface{})
- func (m *MongoHandler) Update(i interface{}) error
- type ORMHandler
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormHandler ¶
type GormHandler struct {
// contains filtered or unexported fields
}
func (*GormHandler) Create ¶
func (g *GormHandler) Create(i interface{}) error
func (*GormHandler) Do ¶
func (g *GormHandler) Do(f func(*gorm.DB) (interface{}, error)) (interface{}, error)
func (*GormHandler) Get ¶
func (g *GormHandler) Get(i interface{}, q ...Query) error
func (*GormHandler) Migrate ¶
func (g *GormHandler) Migrate(i interface{}) error
func (*GormHandler) Ping ¶
func (g *GormHandler) Ping() error
func (*GormHandler) SetContext ¶
func (g *GormHandler) SetContext(key string, val interface{})
func (*GormHandler) Update ¶
func (g *GormHandler) Update(i interface{}) error
type MongoHandler ¶
type MongoHandler struct {
// contains filtered or unexported fields
}
func (*MongoHandler) Create ¶
func (m *MongoHandler) Create(i interface{}) error
func (*MongoHandler) Get ¶
func (m *MongoHandler) Get(i interface{}, q ...Query) error
func (*MongoHandler) Gets ¶
func (m *MongoHandler) Gets(i interface{}, q ...Query) (int, error)
todo: set value
func (*MongoHandler) Ping ¶
func (m *MongoHandler) Ping() error
func (*MongoHandler) SetContext ¶
func (m *MongoHandler) SetContext(string, interface{})
func (*MongoHandler) Update ¶
func (m *MongoHandler) Update(i interface{}) error
Click to show internal directories.
Click to hide internal directories.