segments

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 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
}

func NewClient

func NewClient(client *rest.Client) *Client

func (Client) Create

func (c Client) Create(ctx context.Context, data []byte, ro rest.RequestOptions) (*http.Response, error)

func (Client) Delete

func (c Client) Delete(ctx context.Context, id string, ro rest.RequestOptions) (*http.Response, error)

func (Client) Get

Get segment with UID. If the field 'add-fields' in rest.RequestOptions.QueryParams is not specified, it will be set to "INCLUDES", "VARIABLES", "EXTERNALID", "RESOURCECONTEXT".

func (Client) List

List gets the list of the existing segments. It uses the ":lean" endpoint to get the minimum necessary data set. If the field 'add-fields' in rest.RequestOptions.QueryParams is not specified, it will be set to "EXTERNALID".

func (Client) Update

func (c Client) Update(ctx context.Context, id string, data []byte, ro rest.RequestOptions) (*http.Response, error)

Jump to

Keyboard shortcuts

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