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) (*ms.User, bool)
- func UserIdFrom(c *gin.Context) (int64, bool)
- func UserNameFrom(c *gin.Context) (string, bool)
- type BaseServant
- type DaoServant
- func (s *DaoServant) DeleteSearchPost(post *ms.Post) error
- func (s *DaoServant) GetTweetBy(id int64) (*ms.PostFormated, error)
- func (s *DaoServant) GetTweetList(conditions ms.ConditionsT, offset, limit int) ([]*ms.Post, []*ms.PostFormated, error)
- func (s *DaoServant) PushPostToSearch(post *ms.Post)
- func (s *DaoServant) PushPostsToSearch(c context.Context)
- func (s *DaoServant) RelationTypFrom(me *ms.User, username string) (res *cs.VistUser, err error)
- 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 BaseServant ¶
type BaseServant struct {
// contains filtered or unexported fields
}
func NewBaseServant ¶ added in v0.4.0
func NewBaseServant() *BaseServant
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) GetTweetList ¶
func (s *DaoServant) GetTweetList(conditions ms.ConditionsT, offset, limit int) ([]*ms.Post, []*ms.PostFormated, error)
func (*DaoServant) PushPostToSearch ¶
func (s *DaoServant) PushPostToSearch(post *ms.Post)
func (*DaoServant) PushPostsToSearch ¶
func (s *DaoServant) PushPostsToSearch(c context.Context)
func (*DaoServant) RelationTypFrom ¶ added in v0.4.0
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.