Documentation ¶
Index ¶
- Constants
- Variables
- func BinStamp(w http.ResponseWriter, r *http.Request, reqdat map[string]string)
- func ConfigHandler(w http.ResponseWriter, r *http.Request)
- func DebugLog(s string)
- func DebugLogf(format string, args ...interface{})
- func EvalNumber(numStr string, randSeed int64) int64
- func Hijack(w http.ResponseWriter, r *http.Request, reqdat map[string]string)
- func Logger(alog *log.Logger, next http.Handler) http.Handler
- func NewSeekPosFor(off int64, whence int, posold int64, size int64) (int64, error)
- func ProcessHeaders(w http.ResponseWriter, r *http.Request, reqdat map[string]string) bool
- func ReadBlock(pbuf []byte, at int64, max int64, blk_size int64, ...) (n int, err error)
- func TextStamp(w http.ResponseWriter, r *http.Request, reqdat map[string]string)
- type BinFastGen
- type BinGen
- type BinStampSeeker
- type Config
- type DTPHandler
- type DelayForward
- type Evaluable
- type EvtForward
- type Gen3sGen
- type Generator
- func NewBinFastGen(reqdat map[string]string, lastmod int64) Generator
- func NewBinGen(reqdat map[string]string, lastmod int64) Generator
- func NewDelayForwardGen(w http.ResponseWriter, r *http.Request, gen Generator, ...) Generator
- func NewEvtForwardGen(w http.ResponseWriter, r *http.Request, gen Generator, ...) Generator
- func NewGen3sGen(reqdat map[string]string, lastmod int64) Generator
- func NewTexGen(reqdat map[string]string, latmod int64) Generator
- func NewTxtGen(reqdat map[string]string, lastmod int64) Generator
- type HandlerFunc
- type Literal
- type Log
- type LogRecorder
- type NewForwardFunc
- type NewGeneratorFunc
- type Number
- type Operator
- type RangeBE
- type TexGen
- type TextStampSeeker
- type Timeout
- type TxtGen
Constants ¶
View Source
const ByteMask = 0x8000000000000000
View Source
const ReadBlockSize = 32
View Source
const XDtpCcHdrStr = `X-Dtp-Cc`
View Source
const XDtpHdrStr = `X-Dtp`
Variables ¶
View Source
var Buf3Cache []byte
View Source
var Buf3Mutex sync.Mutex
View Source
var GlobalConfig = NewConfig()
View Source
var GlobalForwarderFuncs = map[string]NewForwardFunc{}
View Source
var GlobalGeneratorFuncs = map[string]NewGeneratorFunc{}
View Source
var GlobalHandlerFuncs = map[string]HandlerFunc{}
View Source
var TexMutex sync.Mutex
View Source
var Texture []byte
View Source
var TextureCache []byte
View Source
var TextureCap int
Functions ¶
func ConfigHandler ¶
func ConfigHandler(w http.ResponseWriter, r *http.Request)
handle api configuration endpoint
func EvalNumber ¶
func NewSeekPosFor ¶
func ProcessHeaders ¶
Types ¶
type BinFastGen ¶
func (*BinFastGen) ContentType ¶
func (bs *BinFastGen) ContentType() string
type BinGen ¶
func (*BinGen) ContentType ¶
type BinStampSeeker ¶
type Config ¶
type DTPHandler ¶
type DTPHandler struct{}
func NewDTPHandler ¶
func NewDTPHandler() DTPHandler
func (DTPHandler) ServeHTTP ¶
func (h DTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DelayForward ¶
type DelayForward struct { Generator Generator Latency time.Duration // per request latency FirstTime bool }
func (*DelayForward) ContentType ¶
func (ss *DelayForward) ContentType() string
type Evaluable ¶
func LexNumberStr ¶
type EvtForward ¶
type EvtForward struct {
// contains filtered or unexported fields
}
func (*EvtForward) ContentType ¶
func (ss *EvtForward) ContentType() string
type Gen3sGen ¶
func (*Gen3sGen) ContentType ¶
type Generator ¶
type Generator interface { ContentType() string io.ReadSeeker }
This is for content generation
func NewDelayForwardGen ¶
func NewEvtForwardGen ¶
type HandlerFunc ¶
No content generation
type LogRecorder ¶
type LogRecorder struct { http.ResponseWriter Status int HeaderBytes int64 ContentBytes int64 }
func (*LogRecorder) WriteHeader ¶
func (rec *LogRecorder) WriteHeader(code int)
type NewForwardFunc ¶
type TexGen ¶
func (*TexGen) ContentType ¶
type TextStampSeeker ¶
type TxtGen ¶
func (*TxtGen) ContentType ¶
Click to show internal directories.
Click to hide internal directories.