facebook

package
v0.0.0-...-5b2671d Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fields

func Fields(args ...string) func(form *url.Values)

Types

type Archiver

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

func NewArchiver

func NewArchiver(c *toml.Tree) *Archiver

func (*Archiver) CanFollow

func (a *Archiver) CanFollow(id, kind, connection string) bool

func (*Archiver) Sync

func (a *Archiver) Sync(ctx context.Context) error

type Client

type Client struct {
	HttpClient *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) GetEdge

func (c *Client) GetEdge(id, connection string, paging *Paging, options ...Option) (*Datalist, error)

func (*Client) GetNode

func (c *Client) GetNode(id string, options ...Option) (*Node, error)

type Datalist

type Datalist struct {
	Data   []Node
	Paging Paging
}

type Field

type Field struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

type Metadata

type Metadata struct {
	Fields      []Field           `json:"fields"`
	Connections map[string]string `json:"connections"`
	Type        string            `json:"type"`
}

type Node

type Node struct {
	Metadata Metadata `json:"metadata"`
	ID       string   `json:"id"`

	Message proto.Message
}

type Option

type Option func(*url.Values)

type Paging

type Paging struct {
	Previous string `json:"previous"`
	Next     string `json:"next"`
}

Jump to

Keyboard shortcuts

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