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
Click to show internal directories.
Click to hide internal directories.