Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is the operation counter repo implementation.
func New ¶
func New(db *gorm.DB) *Repository
New creates an instance of repository using the provided db.
func (*Repository) Create ¶
func (r *Repository) Create(cntr models.OperationCounter) (id int64, err error)
Last returns the last added block.
Click to show internal directories.
Click to hide internal directories.