Documentation
¶
Index ¶
- type Cursor
- type Repository
- func (r *Repository) GetConnection(ctx context.Context, by gmodel.ConnectionBy) (*gmodel.Connection, error)
- func (r *Repository) GetConnections(ctx context.Context, first *int, after *string, last *int, before *string) (*gmodel.ConnectionConnection, error)
- func (r *Repository) ToAPI(v *models.Connection) *gmodel.Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { *base.Repository // contains filtered or unexported fields }
func New ¶ added in v0.4.8
func New(db *base.Repository) *Repository
New creates a new connection repository.
func (*Repository) GetConnection ¶
func (r *Repository) GetConnection(ctx context.Context, by gmodel.ConnectionBy) (*gmodel.Connection, error)
func (*Repository) GetConnections ¶
func (r *Repository) GetConnections(ctx context.Context, first *int, after *string, last *int, before *string) (*gmodel.ConnectionConnection, error)
func (*Repository) ToAPI ¶ added in v0.4.8
func (r *Repository) ToAPI(v *models.Connection) *gmodel.Connection
Click to show internal directories.
Click to hide internal directories.