Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterEntity ¶
type FilterEntity struct {
Query string `query:"q,omitempty" validate:"omitempty,max=100"`
}
type Repository ¶
type Repository interface { Create(ctx context.Context, entity *Entity) *i18np.Error Read(ctx context.Context, id string) *i18np.Error List(ctx context.Context, filter FilterEntity, listConfig list.Config) (*list.Result[*Entity], *i18np.Error) }
func NewRepo ¶
func NewRepo(collection *mongo.Collection, factory Factory) Repository
Source Files ¶
Click to show internal directories.
Click to hide internal directories.