dep_adv_client

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

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 New

func New(httpClient base_client.HTTPClient, baseUrl string) *Client

func (*Client) DeleteDepAdvertisement

func (c *Client) DeleteDepAdvertisement(ctx context.Context, dID, ref string) error

func (*Client) DeleteDepAdvertisements

func (c *Client) DeleteDepAdvertisements(ctx context.Context, dID string) error

func (*Client) GetDepAdvertisement

func (c *Client) GetDepAdvertisement(ctx context.Context, dID, ref string) (model.DepAdvertisement, error)

func (*Client) GetDepAdvertisements

func (c *Client) GetDepAdvertisements(ctx context.Context, dID string) (map[string]model.DepAdvertisement, error)

func (*Client) PutDepAdvertisement

func (c *Client) PutDepAdvertisement(ctx context.Context, dID string, adv model.DepAdvertisementBase) error

func (*Client) PutDepAdvertisements

func (c *Client) PutDepAdvertisements(ctx context.Context, dID string, ads map[string]model.DepAdvertisementBase) error

func (*Client) QueryDepAdvertisements

func (c *Client) QueryDepAdvertisements(ctx context.Context, filter model.DepAdvFilter) ([]model.DepAdvertisement, error)

Jump to

Keyboard shortcuts

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