clients

package
v0.0.0-...-d1be348 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyBody

func CopyBody(r *http.Response) string

func RandomString

func RandomString() string

func Triple

func Triple(s string) (string, string, string)

Types

type EVM

func NewEVMClient

func NewEVMClient(t *testing.T) *EVM

type Event

type Event struct {
	Message string `json:"message"`
}

type NakamaClient

type NakamaClient struct {
	ReceiptCh chan Receipt
	EventCh   chan Event
	// contains filtered or unexported fields
}

func NewNakamaClient

func NewNakamaClient(t *testing.T) *NakamaClient

func (*NakamaClient) AuthenticateSIWE

func (c *NakamaClient) AuthenticateSIWE(username, signerAddress string, signFn func(msg string) string) error

func (*NakamaClient) RPC

func (c *NakamaClient) RPC(path string, body any) (*http.Response, error)

func (*NakamaClient) RegisterDevice

func (c *NakamaClient) RegisterDevice(username, deviceID string) error

type NotificationCollection

type NotificationCollection struct {
	Notifications struct {
		Notifications []NotificationItem `json:"notifications"`
	} `json:"notifications"`
}

type NotificationItem

type NotificationItem struct {
	ID         string    `json:"id"`
	Subject    string    `json:"subject"`
	Content    string    `json:"content"`
	Code       int       `json:"code"`
	CreateTime time.Time `json:"createTime"`
	Persistent bool      `json:"persistent"`
}

type Receipt

type Receipt struct {
	TxHash string         `json:"txHash"`
	Result map[string]any `json:"result"`
	Errors []string       `json:"errors"`
}

type RiftClient

type RiftClient struct {
	Rift shard.TransactionHandlerClient
}

func NewRiftClient

func NewRiftClient(t *testing.T, optionalRouterKey ...string) *RiftClient

Jump to

Keyboard shortcuts

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