web

package
v0.0.0-...-db87d58 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(s Storage, port uint) *Server

func (*Server) Serve

func (s *Server) Serve() error

type Server_

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

func (*Server_) Serve

func (s *Server_) Serve()

type Storage

type Storage interface {
	Write(msgs []byte) error
	Read(chunk string, off uint64, maxSize uint64, w io.Writer) error
	Ack(chunk string) error
	ListChunks() error
}

Storage defines an interface for backend storage. It can be either on-disk, in-memory, or other types of storage.

Jump to

Keyboard shortcuts

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