tessera

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotConfigured = fmt.Errorf("tessera not configured")

Functions

This section is empty.

Types

type Client

type Client interface {
	StoreRaw(ctx context.Context, payload []byte, privateFrom string) ([]byte, error)
}

Client is a client to Tessera Private Transaction Manager

type HTTPClient

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

HTTPClient is a tessera.Client that uses http

func NewHTTPClient

func NewHTTPClient(c httpclient.Client) *HTTPClient

NewHTTPClient creates a new HTTPClient

func (*HTTPClient) StoreRaw

func (c *HTTPClient) StoreRaw(ctx context.Context, payload []byte, privateFrom string) ([]byte, error)

type NotConfiguredClient

type NotConfiguredClient struct{}

NotConfiguredClient is a Tessera Client that always return a tessera not configured error

func (*NotConfiguredClient) StoreRaw

func (c *NotConfiguredClient) StoreRaw(context.Context, []byte, string) ([]byte, error)

type StoreRawRequest

type StoreRawRequest struct {
	Payload     string `json:"payload"`
	PrivateFrom string `json:"privateFrom"`
}

type StoreRawResponse

type StoreRawResponse struct {
	Key string `json:"key"`
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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