client

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	SendMessage(message Message) error
}

func New

func New(url string) Client

func NewTestClient

func NewTestClient(testClientConfig TestClientConfig) Client

type Impl

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

func (*Impl) SendMessage

func (this *Impl) SendMessage(message Message) error

type Message

type Message = model.Message

type TestClient

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

func (*TestClient) SendMessage

func (this *TestClient) SendMessage(message Message) error

type TestClientConfig

type TestClientConfig struct {
	SendMessageHook func(message Message) error
}

Jump to

Keyboard shortcuts

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