nodebb

package
v0.0.0-...-5da6724 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context) (forum.Forum, error)

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) BgColor

func (c *Category) BgColor() [3]uint8

func (*Category) Description

func (c *Category) Description() string

func (*Category) FgColor

func (c *Category) FgColor() [3]uint8

func (*Category) ID

func (c *Category) ID() int64

func (*Category) Imported

func (c *Category) Imported() map[forum.Forum]int64
func (c *Category) Link() string

func (*Category) Name

func (c *Category) Name() string

func (*Category) Order

func (c *Category) Order() int

func (*Category) Parent

func (c *Category) Parent() int64

func (*Category) Slug

func (c *Category) Slug() string

type Forum

type Forum struct {
	forum.Shared
	// contains filtered or unexported fields
}

func (*Forum) Categories

func (f *Forum) Categories(ctx context.Context) <-chan forum.Category

func (*Forum) Close

func (f *Forum) Close() error

func (*Forum) Groups

func (f *Forum) Groups(ctx context.Context) <-chan forum.Group

func (*Forum) Posts

func (f *Forum) Posts(ctx context.Context) <-chan forum.Post

func (*Forum) SetPreviousForums

func (f *Forum) SetPreviousForums(forums []forum.Forum)

func (*Forum) Topics

func (f *Forum) Topics(ctx context.Context) <-chan forum.Topic

func (*Forum) Users

func (f *Forum) Users(ctx context.Context) <-chan forum.User

func (*Forum) Votes

func (f *Forum) Votes(ctx context.Context) <-chan forum.Vote

type Group

type Group struct {
}

type Post

type Post struct {
}

type Topic

type Topic struct {
}

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) Bio

func (u *User) Bio() string

func (*User) CreatedAt

func (u *User) CreatedAt() time.Time

func (*User) DateOfBirth

func (u *User) DateOfBirth() pq.NullTime

func (*User) DisplayName

func (u *User) DisplayName() string

func (*User) Email

func (u *User) Email() string

func (*User) ID

func (u *User) ID() int64

func (*User) Imported

func (u *User) Imported() map[forum.Forum]int64

func (*User) LastSeen

func (u *User) LastSeen() pq.NullTime

func (*User) Location

func (u *User) Location() string

func (*User) Login

func (u *User) Login() string

func (*User) Signature

func (u *User) Signature() string

func (*User) Slug

func (u *User) Slug() string

func (*User) WebAddress

func (u *User) WebAddress() string

type Vote

type Vote struct {
}

Jump to

Keyboard shortcuts

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