threadshelper

package
v0.0.0-...-55235b3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionNameSchemaRecord = "SchemaRecord"
)

Variables

This section is empty.

Functions

func LoadPrivateKeyFromPemFile

func LoadPrivateKeyFromPemFile(fileName string) (crypto.PrivKey, error)

func SavePrivateKeyToPemFile

func SavePrivateKeyToPemFile(fileName string) (crypto.PrivKey, error)

Types

type ClientStruct

type ClientStruct struct {
	BaseThreadId thread.ID
	Client       *client.Client
	Identity     thread.Identity
	Token        thread.Token
}

func NewClientStruct

func NewClientStruct(baseThreadIdStr string) (*ClientStruct, error)

func (*ClientStruct) Close

func (cs *ClientStruct) Close()

func (*ClientStruct) CreateBaseCollection

func (cs *ClientStruct) CreateBaseCollection() error

func (*ClientStruct) CreateBaseDb

func (cs *ClientStruct) CreateBaseDb() (db.Info, error)

func (*ClientStruct) PublishPayload

func (cs *ClientStruct) PublishPayload(ctx context.Context, sId multischema.SchemaId, payload []byte) (string, error)

func (*ClientStruct) RegisterSchema

func (cs *ClientStruct) RegisterSchema(ctx context.Context, record model.SchemaRecord) error

Jump to

Keyboard shortcuts

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