mirror of
https://github.com/soypat/lneto.git
synced 2026-08-08 17:03:40 +00:00
5c54030f19
* add http/httphi * begin adding httphi tests * claude found neat bugs * add low level Handle function and more tests * more tests, run go generate * add Hijacker-like functionality * improve locking and acquisition of Exchanges in reconfiguring * several bugfixes, add internal.IntLen, round up http-linux example with new router API * small nit * add benchmarks * add query handling * remove ForEach pattern, allocates in TinyGo * massive documentation push and code reordering in files * Router.Handle returns error after being torn down * run go fix * rework Mux interface to receive a string request path * add MethodFrom * minor doc nit * fail on incomplete staging * add raw buffer access * add streaming API distinct from Exchange * begin adding multipart form logic * finish rounding up multipart form parsing * remove status type * first Multipart approach * begin adding readMultiPart * add Exchange.ReadMultiparts reimagining of clanker slop * ai insists with backoffs * simplify clanker slop * apply go fix * add a pattern argument to Mux * explicit header key/value alloc and add ExchangeConfig * fix tests after excplicit header alloc change * fix examples * run go fix * expose rawsock as experimental package (will use for external benchmarks) * remove backoff from form parsing * @MDr164 suggestions get potential fixes * apply go fix * add examples * add README.md * fix rawsock tinygo implementation * apply @MDr164 various fixes * update documentation on ContentLength methods and fix bug in Form reset on empty body * fix tests * add fuzz tests * run go fix * io.ErrNoProgress on parsing form spin * run go fix * remove backoff assumption from Router * httphi.Handle rejects unsupported protocols * go format router.go * add kvbuffer * rewrite Cookie with KVBuffer * mid refactor of KVBuffer into Header * work on KVBuffer exhausted semantics * add Go's ServeMux Request.PathValue access semantics to Exchange, Mux and MuxSlice * add PathValue example * document all the things; improve req Query semantics; add Form.EnableBufferGrowth * unexport kvBuffer * add Exchange.PathValueAppend * use stdlib in example instead of rawsock * remove rawsock from http example * add darwin arch rawsock * fix example * rename Router.TeardownGoroutines to Shutdown matching http.Server.Shutdown * rename types and identifiers * @MDr164 Content-Type and Transfer-Encoding bug catches
38 lines
1.0 KiB
Go
38 lines
1.0 KiB
Go
// Code generated by "stringer -type=LinkMode -linecomment -output=phy_stringers.go"; DO NOT EDIT.
|
|
|
|
package phy
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[LinkDown-0]
|
|
_ = x[Link10HDX-1]
|
|
_ = x[Link10FDX-2]
|
|
_ = x[Link100HDX-3]
|
|
_ = x[Link100FDX-4]
|
|
_ = x[Link100T4-5]
|
|
_ = x[Link1000HDX-6]
|
|
_ = x[Link1000FDX-7]
|
|
_ = x[Link2500FDX-8]
|
|
_ = x[Link5GFDX-9]
|
|
_ = x[Link10GFDX-10]
|
|
_ = x[Link25GFDX-11]
|
|
_ = x[Link40GFDX-12]
|
|
_ = x[Link100GFDX-13]
|
|
}
|
|
|
|
const _LinkMode_name = "down10M-H10M-F100M-H100M-F100M-T41000M-H1000M-F2.5G-F5G-F10G-F25G-F40G-F100G-F"
|
|
|
|
var _LinkMode_index = [...]uint8{0, 4, 9, 14, 20, 26, 33, 40, 47, 53, 57, 62, 67, 72, 78}
|
|
|
|
func (i LinkMode) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_LinkMode_index)-1 {
|
|
return "LinkMode(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _LinkMode_name[_LinkMode_index[idx]:_LinkMode_index[idx+1]]
|
|
}
|