cargo

package module
v0.0.0-...-ab6a909 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 9 Imported by: 0

README

cargo

This is for persistent storage.
Requires a mechanism to for global information access.
Persistence means either:

  • Saving the data changes as a container
  • Keeping the data always alive somewhere

The first requires some sort of container hub, which were it to be internal, means that it is essentially doing the latter, but in a simplified way.

Investigate the alternatives: Kubeedge, swarmkit, other moby tech.

Anticipated: A docker-only version of the system is inferior to these others, but a wider version specifically designed for consumer results in a specialization for the system.

See how these others manage data, and build set-up a simple system for data management.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cargo

type Cargo struct{}

func (*Cargo) Connect

func (c *Cargo) Connect() error

type Request

type Request struct {
	ReqType int
	Name    string
	Data    []byte
}

type Requester

type Requester struct {
	// contains filtered or unexported fields
}

func NewRequester

func NewRequester() *Requester

func (*Requester) SendRequest

func (r *Requester) SendRequest(req *Request) *Response

type Response

type Response struct {
	Status int
	Data   []byte
}

type Server

type Server interface {
	// Given a port of 0, assigns a free port to the server.
	Run(port int)
}

Server for the Nebula Spinner

func New

func New() Server

Produces a new Server interface of struct server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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