theoffice

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) GetConnections added in v0.2.0

func (c *Client) GetConnections(ctx context.Context, season int) (*ConnectionsResponse, error)

func (*Client) GetQuotes

func (c *Client) GetQuotes(ctx context.Context, season, episode int) (*QuotesResponse, error)

type Config

type Config struct {
	Address string
}

type Connection added in v0.2.0

type Connection struct {
	Episode     int    `json:"episode,omitempty"`
	EpisodeName string `json:"episode_name,omitempty"`
	Links       []Link `json:"links,omitempty"`
	Nodes       []Node `json:"nodes,omitempty"`
}

type ConnectionsResponse added in v0.2.0

type ConnectionsResponse struct {
	Connections []Connection
}
type Link struct {
	Source string `json:"source,omitempty"`
	Target string `json:"target,omitempty"`
	Value  int    `json:"value,omitempty"`
}

type Node added in v0.2.0

type Node struct {
	ID string `json:"id,omitempty"`
}

type Quote

type Quote struct {
	Season      int    `json:"season,omitempty"`
	Episode     int    `json:"episode,omitempty"`
	Scene       int    `json:"scene,omitempty"`
	EpisodeName string `json:"episode_name,omitempty"`
	Character   string `json:"character,omitempty"`
	Quote       string `json:"quote,omitempty"`
}

type QuotesResponse

type QuotesResponse struct {
	Quotes []Quote
}

Jump to

Keyboard shortcuts

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