common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase(ctx context.Context, db *gorm.DB) (Database, error)

func (Database) Add

func (d Database) Add(creds *credentials.Credentials) error

func (Database) Delete

func (d Database) Delete(serverURL string) error

func (Database) Get

func (d Database) Get(serverURL string) (string, string, error)

func (Database) List

func (d Database) List() (map[string]string, error)

type GptscriptCredential

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

Jump to

Keyboard shortcuts

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