types.go
changeset 211 12f0761e6442
parent 207 301d5b94be3f
child 219 98697242c4a0
equal deleted inserted replaced
210:3f1f5cb7ae70 211:12f0761e6442
    26 Entities - Everything manipulated/returned by the API
    26 Entities - Everything manipulated/returned by the API
    27 */
    27 */
    28 
    28 
    29 // DomainName is a domain name string, as returned by the domain_blocks API
    29 // DomainName is a domain name string, as returned by the domain_blocks API
    30 type DomainName string
    30 type DomainName string
       
    31 
       
    32 // InstancePeer is a peer name, as returned by the instance/peers API
       
    33 type InstancePeer string
    31 
    34 
    32 // Account represents a Mastodon account entity
    35 // Account represents a Mastodon account entity
    33 type Account struct {
    36 type Account struct {
    34 	ID             int64     `json:"id,string"`
    37 	ID             int64     `json:"id,string"`
    35 	Username       string    `json:"username"`
    38 	Username       string    `json:"username"`