schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package schema is the Ent schema of connectionforge's SQL store. Every table is prefixed connectionforge_ and carries owner_id, except the lease table, whose keys are not owned.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct{ ent.Schema }

Binding is a consumer that uses a connection for a purpose.

func (Binding) Annotations

func (Binding) Annotations() []schema.Annotation

Annotations names the table.

func (Binding) Fields

func (Binding) Fields() []ent.Field

Fields of Binding.

func (Binding) Indexes

func (Binding) Indexes() []ent.Index

Indexes of Binding.

type Connection

type Connection struct{ ent.Schema }

Connection is an owner's relationship with an account at a provider.

func (Connection) Annotations

func (Connection) Annotations() []schema.Annotation

Annotations names the table.

func (Connection) Fields

func (Connection) Fields() []ent.Field

Fields of Connection.

func (Connection) Indexes

func (Connection) Indexes() []ent.Index

Indexes of Connection.

type Credential

type Credential struct{ ent.Schema }

Credential is one sealed version of a connection's credential. The active version is the highest; versions are only ever added one above it.

func (Credential) Annotations

func (Credential) Annotations() []schema.Annotation

Annotations names the table.

func (Credential) Fields

func (Credential) Fields() []ent.Field

Fields of Credential.

func (Credential) Indexes

func (Credential) Indexes() []ent.Index

Indexes of Credential.

type Grant

type Grant struct{ ent.Schema }

Grant is what a principal may do with a connection.

func (Grant) Annotations

func (Grant) Annotations() []schema.Annotation

Annotations names the table.

func (Grant) Fields

func (Grant) Fields() []ent.Field

Fields of Grant.

func (Grant) Indexes

func (Grant) Indexes() []ent.Index

Indexes of Grant.

type Lease

type Lease struct{ ent.Schema }

Lease is a short exclusive lease, such as the one that makes a refresh single-flight. Its key is not owned, so it carries no owner_id.

func (Lease) Annotations

func (Lease) Annotations() []schema.Annotation

Annotations names the table.

func (Lease) Fields

func (Lease) Fields() []ent.Field

Fields of Lease.

Jump to

Keyboard shortcuts

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