Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModeCompletion = "COMPLETION" ModeCode = "CODE" ModeInlineCode = "INLINE_CODE" ModeEditCode = "EDIT_CODE" ModeDocument = "DOCUMENT" ModeUnitTest = "UNIT_TEST" ModeMigrateSyntax = "MIGRATE_SYNTAX" ModeRefactorNaming = "REFACTOR_NAMING" ModeFixSyntax = "FIX_SYNTAX" StatusInProgress = "IN_PROGRESS" StatusCompleted = "COMPLETED" StatusFailed = "FAILED" StatusTimedOut = "TIMED_OUT" )
View Source
const ( LanguageC = "C" LanguageCPP = "CPP" LanguageJavaScript = "JAVASCRIPT" LanguagePHP = "PHP" LanguageJava = "JAVA" LanguageCSharp = "CSHARP" LanguageGo = "GO" LanguageKotlin = "KOTLIN" LanguageTypeScript = "TYPESCRIPT" LanguageRust = "RUST" )
View Source
const ( ModifyNone = "NONE" ModifyReplace = "REPLACE" )
Variables ¶
View Source
var ( Version string = "1.3.0" Build string = "20240514" )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Process(ctx context.Context, request *ProcessRequest) (*ProcessResponse, error)
}
type ClientError ¶
func NewClientError ¶
func NewClientError(message string) ClientError
func NewClientErrorWithCause ¶
func NewClientErrorWithCause(message string, cause error) ClientError
type ProcessRequest ¶ added in v1.0.0
type ProcessResponse ¶ added in v1.0.0
type ProcessResponse struct {
Source string `json:"source"`
}
Click to show internal directories.
Click to hide internal directories.