create

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(bc BroadcastConfiguration) error

func PushFileToStorageEngine

func PushFileToStorageEngine(configuration FilePushConfiguration) (string, error)

func PutContentToStorageEngine

func PutContentToStorageEngine(pcc PutContentConfiguration) error

func SignAndBroadcast

func SignAndBroadcast(sc SignConfiguration) error

Types

type BroadcastConfiguration

type BroadcastConfiguration struct {
	Message   *messages.BaseMessage
	APIServer string
}

type BroadcastData

type BroadcastData struct {
	Topic string `json:"topic"`
	Data  string `json:"data"`
}

type FilePushConfiguration

type FilePushConfiguration struct {
	APIServer     string
	StorageEngine messages.StorageEngine
	Key           string
	Value         io.Reader
}

type PushResponse

type PushResponse struct {
	Hash string `json:"hash"`
}

func PushToStorageEngine

func PushToStorageEngine(spc StandardPushConfiguration) (*PushResponse, error)

type PutContentConfiguration

type PutContentConfiguration struct {
	Message         *messages.BaseMessage
	Content         interface{}
	InlineRequested bool
	StorageEngine   messages.StorageEngine
	APIServer       string
}

type SignConfiguration

type SignConfiguration struct {
	Account   accounts.Account
	Message   *messages.BaseMessage
	APIServer string
}

type StandardPushConfiguration

type StandardPushConfiguration struct {
	Value         interface{}
	APIServer     string
	StorageEngine messages.StorageEngine
}

Jump to

Keyboard shortcuts

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