Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DotlanDbClient ¶
type DotlanDbClient interface { UpsertForumPostForMatch(ctx context.Context, matchInfo *matchservice.MatchInfo, text string) (int, int, error) UpdateForumPostForMatch(ctx context.Context, postId int, text string) error }
func NewClient ¶
func NewClient(ctx context.Context, env *environment.Environment, wp *workerpool.WorkerPool, config config.ConfigClient) (DotlanDbClient, error)
type DotlanDbClientImpl ¶
type DotlanDbClientImpl struct {
// contains filtered or unexported fields
}
func (*DotlanDbClientImpl) UpdateForumPostForMatch ¶
func (*DotlanDbClientImpl) UpsertForumPostForMatch ¶
func (d *DotlanDbClientImpl) UpsertForumPostForMatch(ctx context.Context, matchInfo *matchservice.MatchInfo, text string) (threadId int, postId int, err error)
type ForumPost ¶
type ForumPost struct { Postid uint `db:"postid"` Threadid uint `db:"threadid"` Userid int `db:"userid"` Dateline time.Time `db:"dateline"` Pagetext string `db:"pagetext"` Htmltext string `db:"htmltext"` Remoteip string `db:"remoteip"` Dnsname string `db:"dnsname"` Locked bool `db:"locked"` Invisible bool `db:"invisible"` History string `db:"history"` Attachment_i int `db:"attachment_i"` Notify int `db:"notify"` Quoteid int `db:"quoteid"` }
type ForumThread ¶
type ForumThread struct { Threadid uint `db:"threadid"` Title string `db:"title"` Forumid int `db:"forumid"` Closed bool `db:"closed"` Invisible bool `db:"invisible"` ShowLatest bool `db:"show_latest"` User_id int `db:"user_id"` Firstposter string `db:"firstposter"` Lastposter string `db:"lastposter"` Lastposttime time.Time `db:"lastposttime"` Replies int `db:"replies"` Hits int `db:"hits"` Fv_id int `db:"fv_id"` Ext string `db:"ext"` ExtId uint `db:"ext_id"` // contains filtered or unexported fields }
func (ForumThread) TableName ¶
func (ForumThread) TableName() string
Click to show internal directories.
Click to hide internal directories.