Documentation ¶
Index ¶
- func NewBindAnyFn() func(c *gin.Context, obj any) mir.Error
- func RenderAny(c *gin.Context, data any, err mir.Error)
- func UserFrom(c *gin.Context) (*core.User, bool)
- func UserIdFrom(c *gin.Context) (int64, bool)
- func UserNameFrom(c *gin.Context) (string, bool)
- type BaseBinding
- type BaseRender
- type BaseServant
- type DaoServant
- func (s *DaoServant) DeleteSearchPost(post *core.Post) error
- func (s *DaoServant) GetTweetBy(id int64) (*core.PostFormated, error)
- func (s *DaoServant) GetTweetList(conditions *core.ConditionsT, offset, limit int) ([]*core.Post, []*core.PostFormated, error)
- func (s *DaoServant) PushPostToSearch(post *core.Post)
- func (s *DaoServant) PushPostsToSearch(c context.Context)
- type JsonResp
- 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
Types ¶
type BaseBinding ¶
type BaseRender ¶
type BaseServant ¶
type DaoServant ¶
type DaoServant struct { 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 *core.Post) error
func (*DaoServant) GetTweetBy ¶
func (s *DaoServant) GetTweetBy(id int64) (*core.PostFormated, error)
func (*DaoServant) GetTweetList ¶
func (s *DaoServant) GetTweetList(conditions *core.ConditionsT, offset, limit int) ([]*core.Post, []*core.PostFormated, error)
func (*DaoServant) PushPostToSearch ¶
func (s *DaoServant) PushPostToSearch(post *core.Post)
func (*DaoServant) PushPostsToSearch ¶
func (s *DaoServant) PushPostsToSearch(c context.Context)
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.