structs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SocketUnknown = iota
	SocketUnseal
	SocketInit
	TokenCreate
)

Variables

View Source
var (
	ErrUnknownRequest = errors.New("unknown request type")
)

Functions

This section is empty.

Types

type SocketRequest

type SocketRequest struct {
	Type SocketType `json:"type"`
	Data []byte     `json:"data"`
}

func (SocketRequest) MustMarshal

func (sr SocketRequest) MustMarshal() []byte

type SocketResponse

type SocketResponse struct {
	Data []byte `json:"data"`
}

type SocketType

type SocketType int

Jump to

Keyboard shortcuts

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