ascii

package
v0.0.0-...-efe4ef5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package ascii contains some injectable HTTP interfaces to ASCII hardware

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectRawComm

func InjectRawComm(rt generichttp.RouteTable, raw RawCommunicator)

InjectRawComm injects a /raw POST route into the route table of an HTTPer

Types

type RawCommunicator

type RawCommunicator interface {
	Raw(string) (string, error)
}

RawCommunicator has a single Raw method

type RawWrapper

type RawWrapper struct {
	Comm RawCommunicator
}

RawWrapper is a wrapper around a raw communicator

func (*RawWrapper) HTTPRaw

func (rw *RawWrapper) HTTPRaw(w http.ResponseWriter, r *http.Request)

HTTPRaw provides access to the raw function over http

Jump to

Keyboard shortcuts

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