{"modulePath":"github.com/bboxsys/platform","version":"v0.22.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Types\n\n```go\ntype Controller struct {\n\t// This includes private key and certificate\n\tOptions *natsd.Options\n\n\tLogger *logger.Logger\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewController(controllerConfig ControllerConfig) *Controller\n```\nadd \\*opts.Natsd options key fields to server config\n\n```go\nfunc (controller *Controller) Close() error\n```\n\n```go\nfunc (controller *Controller) Ready() bool\n```\n\n```go\nfunc (controller *Controller) SetReady()\n```\n\n```go\nfunc (controller *Controller) Start()\n```\n\n```go\ntype ControllerConfig struct {\n\t// Application names the hosting process in log lines (app.name in a\n\t// service config). Empty falls back to \"platform\".\n\tApplication        string `json:\"application\"`\n\tPort               int    `json:\"port\"`\n\tMonitorPort        int    `json:\"monitor_port\"`\n\tOperatorJWT        string `json:\"operator_jwt\"`\n\tSystemAccountID    string `json:\"system_account_id\"`\n\tResolverURL        string `json:\"resolver_url\"`\n\tResolverServerName string `json:\"resolver_server_name\"` // SNI hostname for TCP proxy\n\tKeyFile            string `json:\"key_file\"`\n\tCertFile           string `json:\"cert_file\"`\n\tCAFile             string `json:\"ca_file\"`\n\tInsecureSkipVerify bool   `json:\"insecure_skip_verify\"`\n}\n```\n\n","path":"github.com/bboxsys/platform/controller","name":"controller","synopsis":"","isRedistributable":true}
