Documentation
¶
Index ¶
- func ToDBAuthor(author *Author) *db.AuthorDB
- type Author
- type Manager
- func (m *Manager) AddPad(authorId string, padId string)
- func (m *Manager) CreateAuthor(name *string) (*Author, error)
- func (m *Manager) GetAuthor(authorId string) (*Author, error)
- func (m *Manager) GetAuthor4Token(token string) (*Author, error)
- func (m *Manager) GetAuthorId(token string) (*Author, error)
- func (m *Manager) GetAuthorName(authorId string) (*string, error)
- func (m *Manager) ListPadsOfAuthor(authorId string) ([]string, error)
- func (m *Manager) SetAuthorColor(author string, colorId string) error
- func (m *Manager) SetAuthorName(authorId string, authorName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToDBAuthor ¶ added in v0.0.2
Types ¶
type Author ¶
type Author struct {
Id string
Name *string
ColorId string
PadIDs map[string]struct{}
Timestamp int64
}
func NewRandomAuthor ¶ added in v0.0.2
func NewRandomAuthor() *Author
type Manager ¶
func NewManager ¶
func (*Manager) GetAuthorName ¶
*
- Returns the name of the author
- @param {String} author The id of the author
func (*Manager) ListPadsOfAuthor ¶
*
- Returns an array of all pads this author contributed to
- @param {String} authorID The id of the author
func (*Manager) SetAuthorColor ¶
Click to show internal directories.
Click to hide internal directories.