Versions in this module Expand all Collapse all v0 v0.1.0 Oct 23, 2026 Changes in this version + const DummySecret + func CACertPath(dir string) string + func DummyEnv(items []protocol.Item) []string + func GenerateCA() (certPEM, keyPEM []byte, err error) + func LoadOrCreateCA(dir string) (tls.Certificate, []byte, error) + type OriginResult struct + Body []byte + Decision protocol.Decision + Header http.Header + Reason string + Status int + type OriginUse func(ctx context.Context, item, method, rawURL string, header http.Header, ...) (OriginResult, error) + type Server struct + Agent protocol.Principal + App *app.App + CA tls.Certificate + CAPEM []byte + Dir string + ListenAddr string + Now func() time.Time + OriginItems []protocol.Item + OriginUse OriginUse + OutboundTLS *tls.Config + Token string + func New(a *app.App, agentID, dir string) (*Server, error) + func NewOrigin(agentID, dir string, items []protocol.Item, use OriginUse) (*Server, error) + func (s *Server) Addr() string + func (s *Server) Close() error + func (s *Server) Env() []string + func (s *Server) ProxyURL() *url.URL + func (s *Server) Start() error