dotlan

package
v0.0.0-...-1a9a3bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 17 Imported by: 0

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
}

type DotlanDbClientImpl

type DotlanDbClientImpl struct {
	// contains filtered or unexported fields
}

func (*DotlanDbClientImpl) UpdateForumPostForMatch

func (d *DotlanDbClientImpl) UpdateForumPostForMatch(ctx context.Context, postId int, text string) error

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"`
}

func (ForumPost) TableName

func (ForumPost) TableName() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL