{"modulePath":"github.com/crypto-zero/micro/v2","version":"v2.9.9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package exec\n\n## Functions\n\n```go\nfunc NewProxy(opts ...proxy.Option) proxy.Proxy\n```\nNewProxy returns a new proxy which will execute a script, binary or anything\n\n```go\nfunc NewSingleHostProxy(url string) proxy.Proxy\n```\nNewSingleHostProxy returns a router which sends requests to a single file\n\n## Types\n\n```go\ntype Proxy struct {\n\n\t// The file or directory to read from\n\tEndpoint string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Proxy) ProcessMessage(ctx context.Context, msg server.Message) error\n```\n\n```go\nfunc (p *Proxy) ServeRequest(ctx context.Context, req server.Request, rsp server.Response) error\n```\nServeRequest honours the server.Router interface\n\n```go\nfunc (p *Proxy) String() string\n```\n\n","path":"github.com/crypto-zero/micro/v2/service/handler/exec","name":"exec","synopsis":"","isRedistributable":true}
