Versions in this module Expand all Collapse all v0 v0.4.0 Oct 2, 2020 Changes in this version + func GeoHandler(fn func(net.IP) Geo) http.Handler + type BackendHandler func(backend string) http.Handler + type BodyHandle struct + func (b *BodyHandle) Close() error + func (b *BodyHandle) Read(p []byte) (int, error) + func (b *BodyHandle) Size() int64 + func (b *BodyHandle) Write(p []byte) (int, error) + type BodyHandles struct + func (bhs *BodyHandles) Get(id int) *BodyHandle + func (bhs *BodyHandles) NewBuffer() (int, *BodyHandle) + func (bhs *BodyHandles) NewReader(rdr io.ReadCloser) (int, *BodyHandle) + func (bhs *BodyHandles) NewWriter(w io.Writer) (int, *BodyHandle) + type ByteMemory []byte + func (m ByteMemory) Cap() int + func (m ByteMemory) Data() []byte + func (m ByteMemory) Len() int + type Fastlike struct + func New(wasmfile string, instanceOpts ...InstanceOption) *Fastlike + func (f *Fastlike) Instantiate(opts ...InstanceOption) *Instance + func (f *Fastlike) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (f *Fastlike) Warmup(n int) + type Geo struct + ASName string + ASNumber int + AreaCode int + City string + ConnSpeed string + ConnType string + Continent string + CountryCode string + CountryCode3 string + CountryName string + Latitude float64 + Longitude float64 + MetroCode int + PostalCode string + ProxyDescription string + ProxyType string + Region string + UTCOffset int + func DefaultGeo(ip net.IP) Geo + type HttpVersion int32 + const Http09 + const Http10 + const Http11 + const Http2 + const Http3 + type Instance struct + func NewInstance(wasmbytes []byte, opts ...InstanceOption) *Instance + func (i *Instance) ServeHTTP(w http.ResponseWriter, r *http.Request) + type InstanceOption func(*Instance) + func BackendHandlerOption(b BackendHandler) InstanceOption + func GeoHandlerOption(b http.Handler) InstanceOption + func LoggerConfigOption(fn func(logger, abilogger *log.Logger)) InstanceOption + func SecureRequestOption(fn func(*http.Request) bool) InstanceOption + func UserAgentParserOption(fn UserAgentParser) InstanceOption + type Memory struct + func (m *Memory) PutInt32(v int32, offset int64) + func (m *Memory) PutInt64(v int64, offset int64) + func (m *Memory) PutUint16(v uint16, offset int64) + func (m *Memory) PutUint32(v uint32, offset int64) + func (m *Memory) PutUint64(v uint64, offset int64) + func (m *Memory) PutUint8(v uint8, offset int64) + func (m *Memory) ReadAt(p []byte, offset int64) (int, error) + func (m *Memory) ReadUint8(offset int64) uint8 + func (m *Memory) Uint16(offset int64) uint16 + func (m *Memory) Uint32(offset int64) uint32 + func (m *Memory) Uint64(offset int64) uint64 + func (m *Memory) WriteAt(p []byte, offset int64) (int, error) + type MemorySlice interface + Cap func() int + Data func() []byte + Len func() int + type RequestHandle struct + type RequestHandles struct + func (rhs *RequestHandles) Get(id int) *RequestHandle + func (rhs *RequestHandles) New() (int, *RequestHandle) + type ResponseHandle struct + type ResponseHandles struct + func (rhs *ResponseHandles) Get(id int) *ResponseHandle + func (rhs *ResponseHandles) New() (int, *ResponseHandle) + type UserAgent struct + Family string + Major string + Minor string + Patch string + type UserAgentParser func(uastring string) UserAgent + type XqdStatus int32 + const XqdErrBadAlignment + const XqdErrBufferLength + const XqdErrHttpIncomplete + const XqdErrHttpParse + const XqdErrHttpUserInvalid + const XqdErrInvalidArgument + const XqdErrInvalidHandle + const XqdErrUnsupported + const XqdError + const XqdStatusOK