Versions in this module Expand all Collapse all v1 v1.0.0 Aug 11, 2022 Changes in this version + type LookupFn func(key string) (*SocketMapResult, error) + type SocketMapRequest struct + Key string + Name string + func (r *SocketMapRequest) Decode(ns *netstring.Netstring) error + type SocketMapResult struct + Data string + Status string + func NotFound() *SocketMapResult + func Ok(data string) *SocketMapResult + func PermFail(reason string) *SocketMapResult + func TempFail(reason string) *SocketMapResult + func Timeout(reason string) *SocketMapResult + func (r *SocketMapResult) Encode() *netstring.Netstring + type SocketMapServer struct + func NewSocketMapServer() *SocketMapServer + func (s *SocketMapServer) RegisterMap(name string, fn LookupFn) + func (s *SocketMapServer) Serve(listener net.Listener) error