schema

package
v0.0.0-...-abaf21b Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cast

type Cast struct {
	ID        uint64           `json:"id"`
	URL       string           `json:"url"`
	Name      string           `json:"name"`
	Feed      *json.RawMessage `json:"feed"`
	FeedBytes []byte           `json:"-"`
}

func (*Cast) DecodeFeed

func (c *Cast) DecodeFeed()

func (*Cast) EncodeFeed

func (c *Cast) EncodeFeed()

func (*Cast) Marshal

func (d *Cast) Marshal(buf []byte) ([]byte, error)

func (*Cast) Size

func (d *Cast) Size() (s uint64)

func (*Cast) Unmarshal

func (d *Cast) Unmarshal(buf []byte) (uint64, error)

type Client

type Client struct {
	Token string
	UUID  string
	Name  string
}

func (*Client) Marshal

func (d *Client) Marshal(buf []byte) ([]byte, error)

func (*Client) Size

func (d *Client) Size() (s uint64)

func (*Client) Unmarshal

func (d *Client) Unmarshal(buf []byte) (uint64, error)

type Episode

type Episode struct {
	ID        uint64           `json:"id"`
	CastID    uint64           `json:"castid"`
	LastEvent *Event           `json:"lastevent"`
	Feed      *json.RawMessage `json:"feed"`
	FeedBytes []byte           `json:"-"`
	GUID      string           `json:"-"`
	CrawlTS   int64            `json:"-"`
}

func (*Episode) DecodeFeed

func (e *Episode) DecodeFeed()

func (*Episode) EncodeFeed

func (e *Episode) EncodeFeed()

func (*Episode) Marshal

func (d *Episode) Marshal(buf []byte) ([]byte, error)

func (*Episode) Size

func (d *Episode) Size() (s uint64)

func (*Episode) Unmarshal

func (d *Episode) Unmarshal(buf []byte) (uint64, error)

type Event

type Event struct {
	Type              int32  `json:"type"`
	EpisodeID         uint64 `json:"episodeid"`
	PositionTS        int32  `json:"positionts"`
	ClientTS          uint64 `json:"clientts"`
	ConcurrentOrder   int32  `json:"concurrentorder"`
	ClientName        string `json:"clientname"`
	ClientDescription string `json:"clientdescription"`
	ClientUUID        string `json:"-"`
}

func (*Event) Marshal

func (d *Event) Marshal(buf []byte) ([]byte, error)

func (*Event) Size

func (d *Event) Size() (s uint64)

func (*Event) Unmarshal

func (d *Event) Unmarshal(buf []byte) (uint64, error)

type Label

type Label struct {
	ID       uint64 `json:"id"`
	Name     string `json:"name"`
	Content  string `json:"content"`
	Expanded bool   `json:"expanded"`
	Root     bool   `json:"root"`
}

func (*Label) Marshal

func (d *Label) Marshal(buf []byte) ([]byte, error)

func (*Label) Size

func (d *Label) Size() (s uint64)

func (*Label) Unmarshal

func (d *Label) Unmarshal(buf []byte) (uint64, error)

type Setting

type Setting struct {
	ID             uint64 `json:"settingid"`
	Name           string `json:"setting"`
	Value          string `json:"value"`
	ClientSpecific bool   `json:"clientspecific"`
	ClientUUID     string `json:"-"`
}

func (*Setting) Marshal

func (d *Setting) Marshal(buf []byte) ([]byte, error)

func (*Setting) Size

func (d *Setting) Size() (s uint64)

func (*Setting) Unmarshal

func (d *Setting) Unmarshal(buf []byte) (uint64, error)

type User

type User struct {
	ID            uint64
	Username      string
	Password      string
	Clients       []*Client
	Subscriptions []uint64
}

func (*User) Marshal

func (d *User) Marshal(buf []byte) ([]byte, error)

func (*User) Size

func (d *User) Size() (s uint64)

func (*User) UUID

func (u *User) UUID(token string) string

func (*User) Unmarshal

func (d *User) Unmarshal(buf []byte) (uint64, error)

Jump to

Keyboard shortcuts

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