api

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	// Serve accepts incoming connections on the listener, lis.
	// This function blocks until the given listener, list, is closed.
	// The given listener, lis, is owned by the Daemon (server) as soon as this function is called,
	// and the server will close any active listeners as part of its Close method.
	Serve(lis net.Listener) error

	// Close closes the 0-stor daemon its resources and stops all it open connections gracefully.
	// It stops the daemon from accepting new connections and blocks until
	// all established connections and other resources have been closed.
	Close() error
}

Daemon defines the 0-stor Daemon (Server) API interface.

Directories

Path Synopsis
Package grpc provides a daemon implementation, which provides gRPC interface to the 0-stor client.
Package grpc provides a daemon implementation, which provides gRPC interface to the 0-stor client.

Jump to

Keyboard shortcuts

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