apis

package
v0.0.0-...-4a1e664 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 6 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
}

Client defines the APIs client.

func NewClient

func NewClient(client *http.Client, host string) *Client

func (*Client) FindCatFact

func (c *Client) FindCatFact(ctx context.Context) (facts.Topic, error)

FindCatFact returns a cat fact.

func (*Client) FindDogFact

func (c *Client) FindDogFact(ctx context.Context) (facts.Topic, error)

FindDogFact returns a dog fact.

func (*Client) FindEntertainmentFact

func (c *Client) FindEntertainmentFact(ctx context.Context) (facts.Topic, error)

FindEntertainmentFact returns a entertainment fact.

func (*Client) FindTrivialFact

func (c *Client) FindTrivialFact(ctx context.Context) (facts.Topic, error)

FindTrivialFact returns a trivial fact.

Jump to

Keyboard shortcuts

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