Documentation ¶
Index ¶
- func NewBindAnyFn() func(c *gin.Context, obj any) mir.Error
- func OnCacheRespEvent(ac core.AppCache, key string, data any, expire int64)
- func OnExpireAnyRespEvent(ac core.AppCache, pattern string)
- func OnExpireRespEvent(ac core.AppCache, keys ...string)
- func RenderAny(c *gin.Context, data any, err mir.Error)
- func UserFrom(c *gin.Context) (*ms.User, bool)
- func UserIdFrom(c *gin.Context) (int64, bool)
- func UserNameFrom(c *gin.Context) (string, bool)
- type BaseServant
- type CacheRespEvent
- type DaoServant
- func (s *DaoServant) DeleteSearchPost(post *ms.Post) error
- func (s *DaoServant) GetTweetBy(id int64) (*ms.PostFormated, error)
- func (s *DaoServant) PrepareMessages(userId int64, messages []*ms.MessageFormated) error
- func (s *DaoServant) PrepareTweet(userId int64, tweet *ms.PostFormated) error
- func (s *DaoServant) PrepareTweets(userId int64, tweets []*ms.PostFormated) error
- func (s *DaoServant) PrepareUser(userId int64, user *ms.UserFormated) error
- func (s *DaoServant) PushAllPostToSearch()
- func (s *DaoServant) PushPostToSearch(post *ms.Post)
- func (s *DaoServant) RelationTypFrom(me *ms.User, username string) (res *cs.VistUser, err error)
- type ExpireAnyRespEvent
- type ExpireRespEvent
- type PageInfoSetter
- type PageResp
- type Pager
- type SentryHubSetter
- type UserIdSetter
- type UserSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBindAnyFn ¶ added in v0.3.0
func OnCacheRespEvent ¶ added in v0.5.0
func OnExpireAnyRespEvent ¶ added in v0.5.0
func OnExpireRespEvent ¶ added in v0.5.0
Types ¶
type BaseServant ¶
type BaseServant struct {
// contains filtered or unexported fields
}
func NewBaseServant ¶ added in v0.4.0
func NewBaseServant() *BaseServant
type CacheRespEvent ¶ added in v0.5.0
type CacheRespEvent struct { event.UnimplementedEvent // contains filtered or unexported fields }
func (*CacheRespEvent) Action ¶ added in v0.5.0
func (p *CacheRespEvent) Action() error
func (*CacheRespEvent) Name ¶ added in v0.5.0
func (p *CacheRespEvent) Name() string
type DaoServant ¶
type DaoServant struct { *BaseServant Dsa core.WebDataServantA Ds core.DataService Ts core.TweetSearchService Redis core.RedisCache }
func NewDaoServant ¶ added in v0.3.0
func NewDaoServant() *DaoServant
func (*DaoServant) DeleteSearchPost ¶
func (s *DaoServant) DeleteSearchPost(post *ms.Post) error
func (*DaoServant) GetTweetBy ¶
func (s *DaoServant) GetTweetBy(id int64) (*ms.PostFormated, error)
func (*DaoServant) PrepareMessages ¶ added in v0.5.0
func (s *DaoServant) PrepareMessages(userId int64, messages []*ms.MessageFormated) error
func (*DaoServant) PrepareTweet ¶ added in v0.5.0
func (s *DaoServant) PrepareTweet(userId int64, tweet *ms.PostFormated) error
func (*DaoServant) PrepareTweets ¶ added in v0.5.0
func (s *DaoServant) PrepareTweets(userId int64, tweets []*ms.PostFormated) error
func (*DaoServant) PrepareUser ¶ added in v0.5.0
func (s *DaoServant) PrepareUser(userId int64, user *ms.UserFormated) error
func (*DaoServant) PushAllPostToSearch ¶ added in v0.5.0
func (s *DaoServant) PushAllPostToSearch()
func (*DaoServant) PushPostToSearch ¶
func (s *DaoServant) PushPostToSearch(post *ms.Post)
func (*DaoServant) RelationTypFrom ¶ added in v0.4.0
type ExpireAnyRespEvent ¶ added in v0.5.0
type ExpireAnyRespEvent struct { event.UnimplementedEvent // contains filtered or unexported fields }
func (*ExpireAnyRespEvent) Action ¶ added in v0.5.0
func (p *ExpireAnyRespEvent) Action() error
func (*ExpireAnyRespEvent) Name ¶ added in v0.5.0
func (p *ExpireAnyRespEvent) Name() string
type ExpireRespEvent ¶ added in v0.5.0
type ExpireRespEvent struct { event.UnimplementedEvent // contains filtered or unexported fields }
func (*ExpireRespEvent) Action ¶ added in v0.5.0
func (p *ExpireRespEvent) Action() error
func (*ExpireRespEvent) Name ¶ added in v0.5.0
func (p *ExpireRespEvent) Name() string
type PageInfoSetter ¶
type PageInfoSetter interface {
SetPageInfo(page, pageSize int)
}
type SentryHubSetter ¶ added in v0.3.0
type SentryHubSetter interface {
SetSentryHub(hub *sentry.Hub)
}
type UserIdSetter ¶
type UserIdSetter interface {
SetUserId(int64)
}
type UserSetter ¶
Click to show internal directories.
Click to hide internal directories.