model

package
v0.0.0-...-bbfbe87 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const CeKeyAttachmentType = "attachmenttype"
View Source
const CeKeyAttachmentUrl = "attachmenturl"
View Source
const CeKeyCategories = "categories"
View Source
const CeKeyObjectUrl = "objecturl"
View Source
const CeKeySubject = "subject"
View Source
const CeKeyTime = "time"
View Source
const CeSpecVersion = "1.0"
View Source
const KeyGroupId = "x-awakari-group-id"
View Source
const KeyUserId = "x-awakari-user-id"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id             string `json:"id"`
	Acct           string `json:"acct"`
	Discoverable   bool   `json:"discoverable"`
	DisplayName    string `json:"display_name"`
	Indexable      *bool  `json:"indexable,omitempty"` // sometimes it's missing
	Locked         bool   `json:"locked"`
	Noindex        bool   `json:"noindex"`
	Note           string `json:"note"`
	Uri            string `json:"uri"`
	Url            string `json:"url"`
	FollowersCount uint32 `json:"followers_count"`
	StatusesCount  uint32 `json:"statuses_count"`
	Tags           []Tag  `json:"tags"`
}

type MediaAttachment

type MediaAttachment struct {
	Type       string `json:"type"`
	Url        string `json:"url"`
	PreviewUrl string `json:"preview_url"`
}

type Results

type Results struct {
	Statuses []Status
	Accounts []Account
}

type SearchType

type SearchType int
const (
	SearchTypeStatuses SearchType = iota
	SearchTypeAccounts
)

func (SearchType) String

func (typ SearchType) String() string

type Status

type Status struct {
	CreatedAt        time.Time         `json:"created_at"`
	Visibility       string            `json:"visibility"`
	Language         string            `json:"language,omitempty"`
	Uri              string            `json:"uri,omitempty"`
	Url              string            `json:"url,omitempty"`
	Content          string            `json:"content"`
	Sensitive        bool              `json:"sensitive"`
	Account          Account           `json:"account"`
	Tags             []Tag             `json:"tags"`
	MediaAttachments []MediaAttachment `json:"media_attachments"`
}

type Tag

type Tag struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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