quotes

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PathBase = "/v1/quotes"

	PathIsms = PathBase + "/isms"
	PathIsm  = PathIsms + "/%s"

	PathSayers = PathBase + "/sayers"
	PathSayer  = PathSayers + "/%s"
)

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() (*Client, error)

NewClient creates a new quotes client.

func (*Client) IsmGet

func (c *Client) IsmGet(id string) (*hivelib.Ism, error)

func (*Client) IsmPost added in v0.28.0

func (c *Client) IsmPost(ism *hivelib.Ism) error

func (*Client) IsmsGet

func (c *Client) IsmsGet() (*hivelib.IsmList, error)

func (*Client) IsmsPageGet added in v0.28.0

func (c *Client) IsmsPageGet(page, count int, orderBy string, orderAsc bool) (*hivelib.IsmList, error)

func (*Client) SayerGet added in v0.26.0

func (c *Client) SayerGet(id string) (*hivelib.Sayer, error)

func (*Client) SayerPost added in v0.28.0

func (c *Client) SayerPost(sayer *hivelib.Sayer) error

func (*Client) SayersGet added in v0.26.0

func (c *Client) SayersGet() (*hivelib.SayerList, error)

func (*Client) SayersPageGet added in v0.28.0

func (c *Client) SayersPageGet(page, count int, orderBy string, orderAsc bool) (*hivelib.SayerList, error)

func (*Client) SetServiceUri

func (c *Client) SetServiceUri(u string)

SetServiceUri sets the base service uri of quotes.

Jump to

Keyboard shortcuts

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