client

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 7 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 ...

func NewClient

func NewClient(url string) (*Client, error)

NewClient ...

func (*Client) Close

func (c *Client) Close()

Close ...

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string) (string, error)

Delete removes a reaction with passed identifier

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string, userID uint64) (*domain.Reaction, error)

Get ...

func (*Client) GetMultiple

func (c *Client) GetMultiple(ctx context.Context, skip uint64, take uint64) ([]domain.Reaction, error)

GetMultiple is used to get the list of specified reactions

func (*Client) Post

func (c *Client) Post(ctx context.Context, personID, details, description, typ string) (string, error)

Post ...

func (*Client) Put

func (c *Client) Put(ctx context.Context, id, personID, details, description, typ string) (string, error)

Put ...

Jump to

Keyboard shortcuts

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