Documentation
¶
Index ¶
- Constants
- func Format(inter interface{}, f func(i interface{}) map[string]interface{}) (interface{}, int)
- func GetObjectID(id interface{}) (primitive.ObjectID, error)
- func NewEsIndex() *index
- type CacheMapObj
- type CacheObj
- type Collection
- type ComCacheObj
- func (t *ComCacheObj) Decode(data []byte, i interface{}) error
- func (t *ComCacheObj) DecodePipe(obj CacheObj) error
- func (t *ComCacheObj) Encode(i interface{}) ([]byte, error)
- func (s *ComCacheObj) GetError() error
- func (s *ComCacheObj) GetStringCmd() (*redis.StringCmd, error)
- func (s *ComCacheObj) HasError() bool
- func (s *ComCacheObj) SetStringCmd(sc *redis.StringCmd)
- type CommonDoc
- type DocInter
- type ESDao
- type ListDoc
- type LogUser
- type Record
- type SearchDaoList
Constants ¶
View Source
const ( PropFormatEmpty = "" PropFormatTime = "epoch_second" )
Variables ¶
This section is empty.
Functions ¶
func GetObjectID ¶
func NewEsIndex ¶ added in v0.9.0
func NewEsIndex() *index
Types ¶
type CacheMapObj ¶ added in v1.4.2
type Collection ¶ added in v1.5.0
type Collection interface {
GetC() string
}
type ComCacheObj ¶ added in v1.0.0
type ComCacheObj struct {
// contains filtered or unexported fields
}
func (*ComCacheObj) Decode ¶ added in v1.0.0
func (t *ComCacheObj) Decode(data []byte, i interface{}) error
func (*ComCacheObj) DecodePipe ¶ added in v1.0.0
func (t *ComCacheObj) DecodePipe(obj CacheObj) error
func (*ComCacheObj) Encode ¶ added in v1.0.0
func (t *ComCacheObj) Encode(i interface{}) ([]byte, error)
func (*ComCacheObj) GetError ¶ added in v1.0.0
func (s *ComCacheObj) GetError() error
func (*ComCacheObj) GetStringCmd ¶ added in v1.0.0
func (s *ComCacheObj) GetStringCmd() (*redis.StringCmd, error)
func (*ComCacheObj) HasError ¶ added in v1.0.0
func (s *ComCacheObj) HasError() bool
func (*ComCacheObj) SetStringCmd ¶ added in v1.0.0
func (s *ComCacheObj) SetStringCmd(sc *redis.StringCmd)
type DocInter ¶
type DocInter interface { Collection GetDoc() interface{} GetID() interface{} SetCreator(u LogUser) AddRecord(u LogUser, msg string) []*Record GetIndexes() []mongo.IndexModel }
type SearchDaoList ¶ added in v0.9.0
type SearchDaoList []ESDao
func (SearchDaoList) Add ¶ added in v0.9.0
func (sdl SearchDaoList) Add(sd ESDao) error
Click to show internal directories.
Click to hide internal directories.