{"modulePath":"github.com/chpock/gen-commit-msg","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package opencode\n\n## Functions\n\n```go\nfunc SetFixturesDir(dir string)\n```\nSetFixturesDir overrides the directory from which fixtures are loaded.\n\n## Types\n\n```go\ntype AppError struct {\n\tOp      string\n\tMessage string\n\tOC      *OCError\n\tErr     error\n}\n```\n\n```go\nfunc (e *AppError) Error() string\n```\n\n```go\nfunc (e *AppError) Render() string\n```\n\n```go\nfunc (e *AppError) Unwrap() error\n```\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(baseURL, repoDir, agent string) *Client\n```\n\n```go\nfunc (c *Client) CreateSession(ctx context.Context, agentName string) (string, error)\n```\n\n```go\nfunc (c *Client) DeleteSession(ctx context.Context, sessionID string) error\n```\n\n```go\nfunc (c *Client) GenerateMessages(ctx context.Context, sessionID string, params GenerateParams) ([]CommitMessage, error)\n```\n\n```go\ntype CommitMessage = generation.Message\n```\n\n```go\ntype GenerateParams = generation.Request\n```\n\n```go\ntype Generator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGenerator(config GeneratorConfig) *Generator\n```\n\n```go\nfunc (g *Generator) Generate(ctx context.Context, request generation.Request, report generation.Reporter) (result generation.Result, err error)\n```\n\n```go\nfunc (g *Generator) Steps() []string\n```\n\n```go\ntype GeneratorConfig struct {\n\tExecutable           string\n\tRepoDir              string\n\tAgent                string\n\tInstallAgent         string\n\tSessionDeleteTimeout time.Duration\n}\n```\n\n```go\ntype OCError struct {\n\tKind        OCErrorKind\n\tRequestType string\n\tSessionID   string\n\tAgent       string\n\tCode        string\n\tMessage     string\n\tStatus      int\n\tRawJSON     string\n}\n```\n\n```go\nfunc (e *OCError) ErrorText() string\n```\n\n```go\nfunc (e *OCError) RenderDetails() string\n```\n\n```go\ntype OCErrorKind string\n```\n\n```go\nconst (\n\tOCErrAPI                OCErrorKind = \"api_error\"\n\tOCErrHTTP               OCErrorKind = \"http_error\"\n\tOCErrNoStructuredOutput OCErrorKind = \"no_structured_output\"\n\tOCErrNoSubjects         OCErrorKind = \"no_subjects\"\n)\n```\n\n","path":"github.com/chpock/gen-commit-msg/internal/opencode","name":"opencode","synopsis":"","isRedistributable":true}
