{"modulePath":"github.com/chpock/gen-commit-msg","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package server\n\n## Variables\n\n```go\nvar (\n\tErrOpenCodeNotFound = errors.New(\"opencode not found in PATH\")\n\tErrServerTimeout    = errors.New(\"timed out waiting for opencode listen URL\")\n\tErrServerExited     = errors.New(\"opencode exited without printing listen URL\")\n)\n```\n\n## Types\n\n```go\ntype MockServer struct {\n\tBaseURL    string\n\tStartError error\n\tStopError  error\n}\n```\n\n```go\nfunc (m *MockServer) Start(ctx context.Context) (string, error)\n```\n\n```go\nfunc (m *MockServer) Stop() error\n```\n\n```go\ntype ProcessServer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(executable string) *ProcessServer\n```\n\n```go\nfunc (s *ProcessServer) Start(ctx context.Context) (string, error)\n```\n\n```go\nfunc (s *ProcessServer) Stop() error\n```\n\n```go\ntype Server interface {\n\tStart(ctx context.Context) (baseURL string, err error)\n\tStop() error\n}\n```\n\n","path":"github.com/chpock/gen-commit-msg/internal/server","name":"server","synopsis":"","isRedistributable":true}
