Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIVersion = "0.0" APIEndpoint = "https://mastodon.social/api/v1" NoRedirect = "urn:ietf:wg:oauth:2.0:oob" )
View Source
const (
DefaultName = "config.toml"
)
Variables ¶
View Source
var (
ErrAlreadyRegistered = errors.New("App already registered")
)
Functions ¶
func GetInstanceList ¶
func GetInstanceList() (list []string)
Types ¶
type Application ¶
type Attachement ¶
type Notification ¶
type Relationship ¶
type Server ¶
Config holds our parameters
func LoadConfig ¶
LoadConfig reads a file as a TOML document and return the structure
func (*Server) WriteToken ¶
type Status ¶
type Status struct { ID int64 URI string URL string Account *Account InReplyToId int64 InReplyToAccountID int64 Reblog *Status Content string CreatedAT time.Time Reblogs int Favourites int Reblogged bool Favourited bool Sensitive bool SpoilerText string Visibility string MediaAttachments []Attachement Mentions []Mention Tags []Tag App Application }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.