client

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	ExchangeUserToken(userid string) (token string, err error)
}

type Client

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

func New

func New(apiUrl string, authEndpoint string, authClientId string, authClientSecret string, debug bool) (*Client, error)

func NewWithAuth

func NewWithAuth(apiUrl string, a Auth, debug bool) *Client

func (*Client) Bulk

func (this *Client) Bulk(userid string, bulk model.BulkRequest) (outputs model.BulkResponse, err error)

func (*Client) Count

func (this *Client) Count(userid string, query model.VariablesQueryOptions) (result model.Count, err error)

func (*Client) Delete

func (this *Client) Delete(userid string, key string) error

func (*Client) DeleteProcessDefinition

func (this *Client) DeleteProcessDefinition(userid string, definitionId string) error

func (*Client) DeleteProcessInstance

func (this *Client) DeleteProcessInstance(userid string, instanceId string) error

func (*Client) Get

func (this *Client) Get(userid string, key string) (value model.VariableWithUnixTimestamp, err error)

func (*Client) List

func (this *Client) List(userid string, query model.VariablesQueryOptions) (result []model.VariableWithUnixTimestamp, err error)

func (*Client) Set

func (this *Client) Set(userid string, variable model.Variable) (err error)

type Token

type Token interface {
	Jwt() string
	IsAdmin() bool
	GetUserId() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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