forum

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category interface {
	ID() int64
	Parent() int64
	Name() string
	Slug() string
	Description() string
	Order() int
	FgColor() [3]uint8
	BgColor() [3]uint8
	Imported() map[Forum]int64
}

type DialFunc

type DialFunc func(context.Context) (Forum, error)

type Forum

type Forum interface {
	Close() error
	Err() error
	Name() string
	SetPreviousForums([]Forum)
	Users(context.Context) <-chan User
	Groups(context.Context) <-chan Group
	Categories(context.Context) <-chan Category
	Topics(context.Context) <-chan Topic
	Posts(context.Context) <-chan Post
	Votes(context.Context) <-chan Vote
}

type Group

type Group interface {
	Name() string
}

type Post

type Post interface {
	ID() int64
}

type Shared

type Shared struct {
	ID string
	// contains filtered or unexported fields
}

func (*Shared) Check

func (s *Shared) Check(err error, message string, args ...interface{}) bool

func (*Shared) Err

func (s *Shared) Err() error

func (*Shared) Name

func (s *Shared) Name() string

type Topic

type Topic interface {
	ID() int64
	Name() string
}

type User

type User interface {
	ID() int64
	Login() string
	DisplayName() string
	Email() string
	Slug() string
	CreatedAt() time.Time
	LastSeen() pq.NullTime
	Signature() string
	Location() string
	Bio() string
	WebAddress() string
	DateOfBirth() pq.NullTime
	Imported() map[Forum]int64
}

type Vote

type Vote interface {
	User() int64
	Post() int64
	Up() bool
}

Jump to

Keyboard shortcuts

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