dapr_client

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

README

dapr_client

dapr_client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyDAPR

func DestroyDAPR()

func InitDAPR

func InitDAPR(timeoutSec int64)

Types

type Client

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

func GetInstance

func GetInstance() *Client

func (*Client) DeleteState added in v0.1.8

func (client *Client) DeleteState(stateStoreName string, key string, meta map[string]string) error

func (*Client) ExecuteStateTransaction added in v0.1.8

func (client *Client) ExecuteStateTransaction(stateStoreName string, meta map[string]string, ops []*dapr.StateOperation) error

func (*Client) GetState added in v0.1.8

func (client *Client) GetState(stateStoreName string, key string, meta map[string]string) (*dapr.StateItem, error)

func (*Client) InvokeDeleteMethod

func (client *Client) InvokeDeleteMethod(appID string, methodName string) ([]byte, error)

func (*Client) InvokeGetMethod

func (client *Client) InvokeGetMethod(appID string, methodName string) ([]byte, error)

func (*Client) InvokePostMethodJson

func (client *Client) InvokePostMethodJson(appID string, methodName string, jsonData []byte) ([]byte, error)

func (*Client) InvokePostMethodMultipart added in v0.1.8

func (client *Client) InvokePostMethodMultipart(appID string, methodName string, multipartContentType string, data []byte) ([]byte, error)

func (*Client) InvokePutMethodJson

func (client *Client) InvokePutMethodJson(appID string, methodName string, jsonData []byte) ([]byte, error)

func (*Client) Publish

func (client *Client) Publish(pubsubName string, topic string, content []byte) error

func (*Client) SaveState added in v0.1.8

func (client *Client) SaveState(stateStoreName string, key string, value []byte, meta map[string]string, so ...dapr.StateOption) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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