dcn

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TokenPrefix = "D"

TokenPrefix is the prefix for a global token id for DCNs.

Variables

This section is empty.

Functions

func ToAPI added in v0.1.20

func ToAPI(d *models.DCN) (*gmodel.Dcn, error)

ToAPI converts a DCN database row to a DCN API model.

Types

type DCNCursor

type DCNCursor struct {
	MintedAt time.Time
	Node     []byte
}

type Repository

type Repository struct {
	*base.Repository
}

func (*Repository) GetDCN

func (r *Repository) GetDCN(ctx context.Context, by gmodel.DCNBy) (*gmodel.Dcn, error)

func (*Repository) GetDCNByName

func (r *Repository) GetDCNByName(ctx context.Context, name string) (*gmodel.Dcn, error)

func (*Repository) GetDCNByNode

func (r *Repository) GetDCNByNode(ctx context.Context, node []byte) (*gmodel.Dcn, error)

func (*Repository) GetDCNs

func (r *Repository) GetDCNs(ctx context.Context, first *int, after *string, last *int, before *string, filterBy *gmodel.DCNFilter) (*gmodel.DCNConnection, error)

Jump to

Keyboard shortcuts

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