repository

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRepo

type BaseRepo struct {
	// contains filtered or unexported fields
}

BaseRepo ...

type Example

type Example interface {
	ptable.Repository

	Find(id int) (*entity.Example, error)
	Update(id int, e *entity.Example) (*entity.Example, error)
}

Example ...

type ExampleImpl

type ExampleImpl struct {
	markup.Component `class:"ptable-repository"`
	BaseRepo
	// contains filtered or unexported fields
}

ExampleImpl ...

func (*ExampleImpl) Find

func (inst *ExampleImpl) Find(id int) (*entity.Example, error)

Find ...

func (*ExampleImpl) Init

func (inst *ExampleImpl) Init(ds ptable.DataSource) error

Init ...

func (*ExampleImpl) Update

func (inst *ExampleImpl) Update(id int, e *entity.Example) (*entity.Example, error)

Update ...

type Permission

type Permission interface {
	ptable.Repository
}

type PermissionImpl

type PermissionImpl struct {
	markup.Component `class:"ptable-repository"`
	BaseRepo
	// contains filtered or unexported fields
}

func (*PermissionImpl) Init

func (inst *PermissionImpl) Init(ds ptable.DataSource) error

type Plan

type Plan interface {
	ptable.Repository
}

type PlanImpl

type PlanImpl struct {
	markup.Component `class:"ptable-repository"`
	BaseRepo
}

func (*PlanImpl) Init

func (inst *PlanImpl) Init(ds ptable.DataSource) error

type Repository

type Repository interface {
	ptable.Repository

	Session() ptable.Session

	GetAll() []*entity.Repository
	GetIDs() []string
	Insert(e *entity.Repository) (*entity.Repository, error)

	Find(id string) (*entity.Repository, error)
	Update(id string, e *entity.Repository) (*entity.Repository, error)
	Delete(id string) error
}

Repository ...

type RepositoryImpl

type RepositoryImpl struct {
	markup.Component `id:"repository-repository" class:"ptable-repository"`
	BaseRepo
	// contains filtered or unexported fields
}

RepositoryImpl ...

func (*RepositoryImpl) Delete

func (inst *RepositoryImpl) Delete(id string) error

Delete ...

func (*RepositoryImpl) Find

func (inst *RepositoryImpl) Find(id string) (*entity.Repository, error)

Find ...

func (*RepositoryImpl) GetAll

func (inst *RepositoryImpl) GetAll() []*entity.Repository

GetAll ...

func (*RepositoryImpl) GetIDs

func (inst *RepositoryImpl) GetIDs() []string

GetIDs ...

func (*RepositoryImpl) Init

func (inst *RepositoryImpl) Init(ds ptable.DataSource) error

Init ...

func (*RepositoryImpl) Insert

func (inst *RepositoryImpl) Insert(e *entity.Repository) (*entity.Repository, error)

Insert ...

func (*RepositoryImpl) Session

func (inst *RepositoryImpl) Session() ptable.Session

Session ...

func (*RepositoryImpl) Update

func (inst *RepositoryImpl) Update(id string, e *entity.Repository) (*entity.Repository, error)

Update ...

type Role

type Role interface {
	ptable.Repository
}

type RoleImpl

type RoleImpl struct {
	markup.Component `class:"ptable-repository"`
	BaseRepo
}

func (*RoleImpl) Init

func (inst *RoleImpl) Init(ds ptable.DataSource) error

type Task

type Task interface {
	ptable.Repository
}

type TaskImpl

type TaskImpl struct {
	markup.Component `class:"ptable-repository"`
	BaseRepo
	// contains filtered or unexported fields
}

func (*TaskImpl) Init

func (inst *TaskImpl) Init(ds ptable.DataSource) error

type User

type User interface {
	ptable.Repository
}

type UserImpl

type UserImpl struct {
	markup.Component `class:"ptable-repository"`
	BaseRepo
}

func (*UserImpl) Init

func (inst *UserImpl) Init(ds ptable.DataSource) error

Jump to

Keyboard shortcuts

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