codebase

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codebase

type Codebase struct {
	ID              string          `db:"id" json:"id"`
	ShortCodebaseID ShortCodebaseID `db:"short_id" json:"short_id"` // Used in Web slugs
	Name            string          `db:"name" json:"name"`
	Description     string          `db:"description" json:"description"`
	Emoji           string          `db:"emoji" json:"emoji"`
	InviteCode      *string         `db:"invite_code" json:"invite_code"`
	CreatedAt       *time.Time      `db:"created_at" json:"created_at"`
	ArchivedAt      *time.Time      `db:"archived_at" json:"archived_at"`
	OrganizationID  *string         `db:"organization_id"`

	IsReady  bool `json:"is_ready" db:"is_ready"`
	IsPublic bool `json:"is_public" db:"is_public"`
}

func (Codebase) GenerateSlug

func (c Codebase) GenerateSlug() string

type CodebaseUser

type CodebaseUser struct {
	ID         string     `db:"id"`
	UserID     string     `db:"user_id"`
	CodebaseID string     `db:"codebase_id"`
	CreatedAt  *time.Time `db:"created_at" json:"created_at"`
}

type CodebaseWithMetadata

type CodebaseWithMetadata struct {
	Codebase
	LastUpdatedAtUnix int64           `json:"last_updated_at_unix"`
	Members           []author.Author `json:"members"`
}

type ShortCodebaseID

type ShortCodebaseID string

Directories

Path Synopsis
acl
db

Jump to

Keyboard shortcuts

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