suggestions

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hunk

type Hunk struct {
	FileName string
	Index    int
}

func ParseAppliedHunkID

func ParseAppliedHunkID(in string) (*Hunk, error)

func (*Hunk) String

func (a *Hunk) String() string

type ID

type ID string

type Suggestion

type Suggestion struct {
	ID         ID     `db:"id"`
	CodebaseID string `db:"codebase_id"`
	// The id of the workspce that contains suggestions.
	WorkspaceID string `db:"workspace_id"`
	// The id of the workspace that suggestion is being made for.
	ForWorkspaceID string `db:"for_workspace_id"`
	// The id of the snapshot that suggestion is being made for.
	ForSnapshotID string `db:"for_snapshot_id"`
	// Time when the suggestion was created.
	CreatedAt time.Time `db:"created_at"`
	// ID of the suggestion diff hunk ids that were applied.
	AppliedHunks pq.StringArray `db:"applied_hunks"`
	// ID of the suggestion diff hunk ids that were dismissed.
	DismissedHunks pq.StringArray `db:"dismissed_hunks"`
	// The id of the user that created the suggestion.
	UserID string `db:"user_id"`
	// DismissedAt is set if the whole suggestion was dismissed.
	DismissedAt *time.Time `db:"dismissed_at"`
	// NotifiedAt is set if the user has been notified about the suggestion.
	NotifiedAt *time.Time `db:"notified_at"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL