poohmucho

package
v0.0.0-...-8f8989e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyId

func NewKeyId(key string) [16]byte

Types

type Cipher

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

func NewCipher

func NewCipher(key string) Cipher

func (*Cipher) Decrypt

func (c *Cipher) Decrypt(data []byte, nonce Nonce, b *bytes.Buffer) error

func (*Cipher) Encrypt

func (c *Cipher) Encrypt(data []byte, nonce Nonce, b *bytes.Buffer) error

type Client

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

func NewClient

func NewClient(endpoint string, apiKey string, httpClient *http.Client) *Client

func (*Client) InvokeModel

func (c *Client) InvokeModel(ctx context.Context, input *bytes.Buffer, output *bytes.Buffer) error

type Nonce

type Nonce [16]byte

func NewNonce

func NewNonce() Nonce

type Signer

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

func NewSigner

func NewSigner(key string) Signer

func (*Signer) Signature

func (s *Signer) Signature(data []byte) [20]byte

Jump to

Keyboard shortcuts

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