stream

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Success means that the action passed without any issues.
	Success result = iota
	// Failure means that the action failed to be executed.
	Failure
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Opcode added in v0.5.0

type Opcode uint8

Opcode is used to specify allowed server operations.

const (
	// Undefined represents an undefined operation.
	Undefined Opcode = iota
	// Find represents the directive to find snippets.
	Find
	// List represents the action of listing out snippets.
	List
	// Insert represents the operaion of inserting snippets.
	Insert
	// Delete represents the directive to delete snippets.
	Delete
	// Reload represents the directive to reload the snippet container.
	Reload
)

type Reply added in v0.5.0

type Reply struct {
	Result result `json:"result"`
	Body   []byte `json:"body"`
}

Reply defines the data format for ther server reply.

type Request added in v0.5.0

type Request struct {
	Operation Opcode `json:"operation"`
	Body      []byte `json:"body"`
}

Request defines the data format for the server request.

Jump to

Keyboard shortcuts

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