Documentation ¶
Index ¶
- Constants
- func ToAPI(d *models.DCN) (*gmodel.Dcn, error)
- type DCNCursor
- type Repository
- func (r *Repository) GetDCN(ctx context.Context, by gmodel.DCNBy) (*gmodel.Dcn, error)
- func (r *Repository) GetDCNByName(ctx context.Context, name string) (*gmodel.Dcn, error)
- func (r *Repository) GetDCNByNode(ctx context.Context, node []byte) (*gmodel.Dcn, error)
- func (r *Repository) GetDCNs(ctx context.Context, first *int, after *string, last *int, before *string, ...) (*gmodel.DCNConnection, error)
Constants ¶
View Source
const TokenPrefix = "D"
TokenPrefix is the prefix for a global token id for DCNs.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
*base.Repository
}
func (*Repository) GetDCNByName ¶
func (*Repository) GetDCNByNode ¶
Click to show internal directories.
Click to hide internal directories.