dapr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGPRCClient

func NewGPRCClient(retry int, interval, gprcPort string) (dapr.Client, error)

Types

type AppRequest

type AppRequest struct {
	ID         string      `json:"id"`
	Method     string      `json:"method"`
	Verb       string      `json:"verb"`
	Header     http.Header `json:"header"`
	QueryValue url.Values  `json:"query_value"`
	Body       []byte      `json:"body"`
}

func (*AppRequest) String

func (a *AppRequest) String() string

type Client

type Client interface {
	Call(context.Context, *AppRequest) (*http.Response, error)
}

type HTTPClient

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

func NewHTTPClient

func NewHTTPClient(httpPort string) *HTTPClient

func (*HTTPClient) Call

func (c *HTTPClient) Call(ctx context.Context,
	req *AppRequest) (*http.Response, error)

Call http invake dapr sidecar.

Jump to

Keyboard shortcuts

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