{"modulePath":"github.com/ozontech/file.d","version":"v0.88.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package socket\n\n## Functions\n\n```go\nfunc Factory() (pipeline.AnyPlugin, pipeline.AnyConfig)\n```\n\n## Types\n\n```go\ntype Config struct {\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e Which network type to listen.\n\tNetwork string `json:\"network\" default:\"tcp\" options:\"tcp|udp|unix\"` // *\n\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e An address to listen to.\n\t// \u003e\n\t// \u003e For example:\n\t// \u003e - /tmp/filed.sock\n\t// \u003e - 1.2.3.4:9092\n\t// \u003e - :9092\n\tAddress string `json:\"address\" required:\"true\"` // *\n\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e CA certificate in PEM encoding. This can be a path or the content of the certificate.\n\t// \u003e\u003e Works only if `network` is set to `tcp`.\n\tCACert string `json:\"ca_cert\" default:\"\"` // *\n\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e CA private key in PEM encoding. This can be a path or the content of the key.\n\t// \u003e\u003e Works only if `network` is set to `tcp`.\n\tPrivateKey string `json:\"private_key\" default:\"\"` // *\n}\n```\n! config-params ^ config-params\n\n```go\ntype Plugin struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Plugin) Commit(_ *pipeline.Event)\n```\n\n```go\nfunc (p *Plugin) PassEvent(_ *pipeline.Event) bool\n```\n\n```go\nfunc (p *Plugin) Start(config pipeline.AnyConfig, params *pipeline.InputPluginParams)\n```\n\n```go\nfunc (p *Plugin) Stop()\n```\n\n","path":"github.com/ozontech/file.d/plugin/input/socket","name":"socket","synopsis":"","isRedistributable":true}
