sqlite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GptscriptCredential

type GptscriptCredential struct {
	ID        uint `gorm:"primary_key"`
	CreatedAt time.Time
	ServerURL string `gorm:"unique"`
	Username  string
	Secret    string
}

type Sqlite

type Sqlite struct {
	// contains filtered or unexported fields
}

func NewSqlite

func NewSqlite(ctx context.Context) (Sqlite, error)

func (Sqlite) Add

func (s Sqlite) Add(creds *credentials.Credentials) error

func (Sqlite) Delete

func (s Sqlite) Delete(serverURL string) error

func (Sqlite) Get

func (s Sqlite) Get(serverURL string) (string, string, error)

func (Sqlite) List

func (s Sqlite) List() (map[string]string, error)

Jump to

Keyboard shortcuts

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