product

package
v0.0.0-...-1316797 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	ID        string    `json:"id" bson:"_id"`
	Name      string    `json:"name" bson:"name"`
	CreatedAt time.Time `json:"createdAt" bson:"created_at"`
	UpdatedAt time.Time `json:"updatedAt" bson:"updated_at"`
	DeletedAt time.Time `json:"deletedAt" bson:"deleted_at"`
}

type Repository

type Repository interface {
	Create(ctx context.Context, name string) (string, *i18np.Error)
	Get(ctx context.Context, id string) (*Entity, *i18np.Error)
}

func NewRepository

func NewRepository(db *mongo.Collection) Repository

Jump to

Keyboard shortcuts

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