Documentation ¶
Index ¶
- func Dial(ctx context.Context) (forum.Forum, error)
- type Category
- func (c *Category) BgColor() [3]uint8
- func (c *Category) Description() string
- func (c *Category) FgColor() [3]uint8
- func (c *Category) ID() int64
- func (c *Category) Imported() map[forum.Forum]int64
- func (c *Category) Link() string
- func (c *Category) Name() string
- func (c *Category) Order() int
- func (c *Category) Parent() int64
- func (c *Category) Slug() string
- type Forum
- func (f *Forum) Categories(ctx context.Context) <-chan forum.Category
- func (f *Forum) Close() error
- func (f *Forum) Groups(ctx context.Context) <-chan forum.Group
- func (f *Forum) Posts(ctx context.Context) <-chan forum.Post
- func (f *Forum) SetPreviousForums(forums []forum.Forum)
- func (f *Forum) Topics(ctx context.Context) <-chan forum.Topic
- func (f *Forum) Users(ctx context.Context) <-chan forum.User
- func (f *Forum) Votes(ctx context.Context) <-chan forum.Vote
- type Group
- type Post
- type Topic
- type User
- func (u *User) Bio() string
- func (u *User) CreatedAt() time.Time
- func (u *User) DateOfBirth() pq.NullTime
- func (u *User) DisplayName() string
- func (u *User) Email() string
- func (u *User) ID() int64
- func (u *User) Imported() map[forum.Forum]int64
- func (u *User) LastSeen() pq.NullTime
- func (u *User) Location() string
- func (u *User) Login() string
- func (u *User) Signature() string
- func (u *User) Slug() string
- func (u *User) WebAddress() string
- type Vote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Category ¶
type Category struct { CID int64 `bson:"cid"` CParent int64 `bson:"parentCid"` CName string `bson:"name"` CSlug string `bson:"slug"` CDescription string `bson:"description"` COrder int `bson:"order"` CFgColor string `bson:"color"` CBgColor string `bson:"bgColor"` CLink string `bson:"link"` // contains filtered or unexported fields }
func (*Category) Description ¶
type Forum ¶
type Forum struct { // contains filtered or unexported fields }
func (*Forum) SetPreviousForums ¶
type User ¶
type User struct { UID int64 `bson:"uid"` ULogin string `bson:"username"` UDisplayName string `bson:"fullname"` UEmail string `bson:"email"` USlug string `bson:"userslug"` UCreatedAt int64 `bson:"joindate"` ULastSeen int64 `bson:"lastonline"` USignature string `bson:"signature"` ULocation string `bson:"location"` UBio string `bson:"aboutme"` UWebAddress string `bson:"website"` UDateOfBirth string `bson:"birthday"` // contains filtered or unexported fields }
func (*User) DateOfBirth ¶
func (*User) DisplayName ¶
func (*User) WebAddress ¶
Click to show internal directories.
Click to hide internal directories.