pup

package module
v0.0.0-...-8d6015a Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Pattern for Universal Protocols (PUP)

Drafts of the PUP specification are available in the draft directory. Each draft is mutually exclusive of the others, and each draft is a standalone specification, though possibly incomplete. The drafts are numbered based on the lineage of their creation: pup-1.md is the parent of pup-1.1.md and pup-1.2.md, and pup-2.md was created independently of pup-1.md, etc. The numbers represent no other significance or preference.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ELONGLINE = errors.New("no newline found -- would overflow Readline output buffer")

Functions

func Readline

func Readline(stream io.Reader, max int) (line []byte, err error)

Types

type Error

type Error struct {
	Errno syscall.Errno
	Msg   string
}

func (Error) Error

func (e Error) Error() string

type Lambda

type Lambda func([]byte, io.ReadWriteCloser) error

type Registration

type Registration struct {
	Hash   string
	Lambda Lambda
}

type Server

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

func (*Server) Dereference

func (s *Server) Dereference(hash string) (lambda Lambda)

func (*Server) Register

func (s *Server) Register(hash string, lambda Lambda)

func (*Server) Registrations

func (s *Server) Registrations() (res []Registration)

func (*Server) Serve

func (s *Server) Serve(host string, port int) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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