Documentation
¶
Index ¶
- Variables
- type AdminUser
- func (s *AdminUser) Connection(ctx context.Context, where *ent.AdminUserWhereInput, ...) (*ent.AdminUserConnection, error)
- func (s *AdminUser) Create(ctx context.Context, data ent.CreateAdminUserInput) (*ent.AdminUser, error)
- func (s *AdminUser) CreateMany(ctx context.Context, data []ent.CreateAdminUserInput) ([]*ent.AdminUser, error)
- func (s *AdminUser) CreateManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateAdminUserInput) ([]*ent.AdminUser, error)
- func (s *AdminUser) CreateTx(ctx context.Context, tx *ent.Tx, data ent.CreateAdminUserInput) (*ent.AdminUser, error)
- func (s *AdminUser) Delete(ctx context.Context, where ent.AdminUserWhereUniqueInput) (*ent.AdminUser, error)
- func (s *AdminUser) DeleteMany(ctx context.Context, where ent.AdminUserWhereInput) (int, error)
- func (s *AdminUser) DeleteManyTx(ctx context.Context, tx *ent.Tx, where ent.AdminUserWhereInput) (int, error)
- func (s *AdminUser) DeleteTx(ctx context.Context, tx *ent.Tx, where ent.AdminUserWhereUniqueInput) (*ent.AdminUser, error)
- func (s *AdminUser) Get(ctx context.Context, where *ent.AdminUserWhereInput, ...) ([]*ent.AdminUser, error)
- func (s *AdminUser) GetOne(ctx context.Context, where ent.AdminUserWhereUniqueInput) (*ent.AdminUser, error)
- func (s *AdminUser) GetOneTx(ctx context.Context, tx *ent.Tx, where ent.AdminUserWhereUniqueInput) (*ent.AdminUser, error)
- func (s *AdminUser) GetTx(ctx context.Context, tx *ent.Tx, where *ent.AdminUserWhereInput, ...) ([]*ent.AdminUser, error)
- func (s *AdminUser) Update(ctx context.Context, where ent.AdminUserWhereUniqueInput, ...) (*ent.AdminUser, error)
- func (s *AdminUser) UpdateMany(ctx context.Context, where ent.AdminUserWhereInput, ...) (int, error)
- func (s *AdminUser) UpdateManyTx(ctx context.Context, tx *ent.Tx, where ent.AdminUserWhereInput, ...) (int, error)
- func (s *AdminUser) UpdateTx(ctx context.Context, tx *ent.Tx, where ent.AdminUserWhereUniqueInput, ...) (*ent.AdminUser, error)
- func (s *AdminUser) Upsert(ctx context.Context, data ent.CreateAdminUserInput) (*ent.AdminUser, error)
- func (s *AdminUser) UpsertMany(ctx context.Context, data []ent.CreateAdminUserInput) (int, error)
- func (s *AdminUser) UpsertManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateAdminUserInput) (int, error)
- func (s *AdminUser) UpsertTx(ctx context.Context, tx *ent.Tx, data ent.CreateAdminUserInput) (*ent.AdminUser, error)
- type Entity
- func (e Entity) CreateEntity(ctx context.Context, data entity.CreateEntityInput) (*entity.Entity, error)
- func (e Entity) DeleteEntity(ctx context.Context, where entity.EntityWhereUniqueInput) (*entity.Entity, error)
- func (Entity) Entities(ctx context.Context) ([]*entity.Entity, error)
- func (Entity) Entity(ctx context.Context, where *entity.EntityWhereUniqueInput) (*entity.Entity, error)
- func (Entity) EntityEdges(ctx context.Context, obj *entity.Entity) ([]*entity.Edge, error)
- func (Entity) EntityFields(ctx context.Context, obj *entity.Entity) ([]*entity.Field, error)
- func (Entity) EntityRelatedEntity(ctx context.Context, obj *entity.Edge) (*entity.Entity, error)
- func (Entity) Fields(ctx context.Context) ([]*entity.Field, error)
- func (e Entity) UpdateEntity(ctx context.Context, where entity.EntityWhereUniqueInput, ...) (*entity.Entity, error)
- type File
- func (s *File) Connection(ctx context.Context, where *ent.FileWhereInput, orderBy *ent.FileOrder, ...) (*ent.FileConnection, error)
- func (s *File) Create(ctx context.Context, data ent.CreateFileInput) (*ent.File, error)
- func (s *File) CreateMany(ctx context.Context, data []ent.CreateFileInput) ([]*ent.File, error)
- func (s *File) CreateManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateFileInput) ([]*ent.File, error)
- func (s *File) CreateTx(ctx context.Context, tx *ent.Tx, data ent.CreateFileInput) (*ent.File, error)
- func (s *File) Delete(ctx context.Context, where ent.FileWhereUniqueInput) (*ent.File, error)
- func (s *File) DeleteMany(ctx context.Context, where ent.FileWhereInput) (int, error)
- func (s *File) DeleteManyTx(ctx context.Context, tx *ent.Tx, where ent.FileWhereInput) (int, error)
- func (s *File) DeleteTx(ctx context.Context, tx *ent.Tx, where ent.FileWhereUniqueInput) (*ent.File, error)
- func (s *File) Get(ctx context.Context, where *ent.FileWhereInput, orderBy *ent.FileOrder, ...) ([]*ent.File, error)
- func (s *File) GetOne(ctx context.Context, where ent.FileWhereUniqueInput) (*ent.File, error)
- func (s *File) GetOneTx(ctx context.Context, tx *ent.Tx, where ent.FileWhereUniqueInput) (*ent.File, error)
- func (s *File) GetTx(ctx context.Context, tx *ent.Tx, where *ent.FileWhereInput, ...) ([]*ent.File, error)
- func (s *File) Update(ctx context.Context, where ent.FileWhereUniqueInput, data ent.UpdateFileInput) (*ent.File, error)
- func (s *File) UpdateMany(ctx context.Context, where ent.FileWhereInput, data ent.UpdateFileInput) (int, error)
- func (s *File) UpdateManyTx(ctx context.Context, tx *ent.Tx, where ent.FileWhereInput, ...) (int, error)
- func (s *File) UpdateTx(ctx context.Context, tx *ent.Tx, where ent.FileWhereUniqueInput, ...) (*ent.File, error)
- func (s *File) Upsert(ctx context.Context, data ent.CreateFileInput) (*ent.File, error)
- func (s *File) UpsertMany(ctx context.Context, data []ent.CreateFileInput) (int, error)
- func (s *File) UpsertManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateFileInput) (int, error)
- func (s *File) UpsertTx(ctx context.Context, tx *ent.Tx, data ent.CreateFileInput) (*ent.File, error)
- type FileManager
- type Permission
- func (s *Permission) Connection(ctx context.Context, where *ent.PermissionWhereInput, ...) (*ent.PermissionConnection, error)
- func (s *Permission) Create(ctx context.Context, data ent.CreatePermissionInput) (*ent.Permission, error)
- func (s *Permission) CreateMany(ctx context.Context, data []ent.CreatePermissionInput) ([]*ent.Permission, error)
- func (s *Permission) CreateManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreatePermissionInput) ([]*ent.Permission, error)
- func (s *Permission) CreateTx(ctx context.Context, tx *ent.Tx, data ent.CreatePermissionInput) (*ent.Permission, error)
- func (s *Permission) Delete(ctx context.Context, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
- func (s *Permission) DeleteMany(ctx context.Context, where ent.PermissionWhereInput) (int, error)
- func (s *Permission) DeleteManyTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereInput) (int, error)
- func (s *Permission) DeleteTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
- func (s *Permission) Get(ctx context.Context, where *ent.PermissionWhereInput, ...) ([]*ent.Permission, error)
- func (s *Permission) GetOne(ctx context.Context, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
- func (s *Permission) GetOneTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
- func (s *Permission) GetTx(ctx context.Context, tx *ent.Tx, where *ent.PermissionWhereInput, ...) ([]*ent.Permission, error)
- func (s *Permission) Update(ctx context.Context, where ent.PermissionWhereUniqueInput, ...) (*ent.Permission, error)
- func (s *Permission) UpdateMany(ctx context.Context, where ent.PermissionWhereInput, ...) (int, error)
- func (s *Permission) UpdateManyTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereInput, ...) (int, error)
- func (s *Permission) UpdateTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereUniqueInput, ...) (*ent.Permission, error)
- func (s *Permission) Upsert(ctx context.Context, data ent.CreatePermissionInput) (*ent.Permission, error)
- func (s *Permission) UpsertMany(ctx context.Context, data []ent.CreatePermissionInput) (int, error)
- func (s *Permission) UpsertManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreatePermissionInput) (int, error)
- func (s *Permission) UpsertTx(ctx context.Context, tx *ent.Tx, data ent.CreatePermissionInput) (*ent.Permission, error)
- type Role
- func (s *Role) Connection(ctx context.Context, where *ent.RoleWhereInput, orderBy *ent.RoleOrder, ...) (*ent.RoleConnection, error)
- func (s *Role) Create(ctx context.Context, data ent.CreateRoleInput) (*ent.Role, error)
- func (s *Role) CreateMany(ctx context.Context, data []ent.CreateRoleInput) ([]*ent.Role, error)
- func (s *Role) CreateManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateRoleInput) ([]*ent.Role, error)
- func (s *Role) CreateTx(ctx context.Context, tx *ent.Tx, data ent.CreateRoleInput) (*ent.Role, error)
- func (s *Role) Delete(ctx context.Context, where ent.RoleWhereUniqueInput) (*ent.Role, error)
- func (s *Role) DeleteMany(ctx context.Context, where ent.RoleWhereInput) (int, error)
- func (s *Role) DeleteManyTx(ctx context.Context, tx *ent.Tx, where ent.RoleWhereInput) (int, error)
- func (s *Role) DeleteTx(ctx context.Context, tx *ent.Tx, where ent.RoleWhereUniqueInput) (*ent.Role, error)
- func (s *Role) Get(ctx context.Context, where *ent.RoleWhereInput, orderBy *ent.RoleOrder, ...) ([]*ent.Role, error)
- func (s *Role) GetOne(ctx context.Context, where ent.RoleWhereUniqueInput) (*ent.Role, error)
- func (s *Role) GetOneTx(ctx context.Context, tx *ent.Tx, where ent.RoleWhereUniqueInput) (*ent.Role, error)
- func (s *Role) GetTx(ctx context.Context, tx *ent.Tx, where *ent.RoleWhereInput, ...) ([]*ent.Role, error)
- func (s *Role) Update(ctx context.Context, where ent.RoleWhereUniqueInput, data ent.UpdateRoleInput) (*ent.Role, error)
- func (s *Role) UpdateMany(ctx context.Context, where ent.RoleWhereInput, data ent.UpdateRoleInput) (int, error)
- func (s *Role) UpdateManyTx(ctx context.Context, tx *ent.Tx, where ent.RoleWhereInput, ...) (int, error)
- func (s *Role) UpdateTx(ctx context.Context, tx *ent.Tx, where ent.RoleWhereUniqueInput, ...) (*ent.Role, error)
- func (s *Role) Upsert(ctx context.Context, data ent.CreateRoleInput) (*ent.Role, error)
- func (s *Role) UpsertMany(ctx context.Context, data []ent.CreateRoleInput) (int, error)
- func (s *Role) UpsertManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateRoleInput) (int, error)
- func (s *Role) UpsertTx(ctx context.Context, tx *ent.Tx, data ent.CreateRoleInput) (*ent.Role, error)
- type SchemaManager
- type Service
- type User
- func (s *User) Connection(ctx context.Context, where *ent.UserWhereInput, orderBy *ent.UserOrder, ...) (*ent.UserConnection, error)
- func (s *User) Create(ctx context.Context, data ent.CreateUserInput) (*ent.User, error)
- func (s *User) CreateMany(ctx context.Context, data []ent.CreateUserInput) ([]*ent.User, error)
- func (s *User) CreateManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateUserInput) ([]*ent.User, error)
- func (s *User) CreateTx(ctx context.Context, tx *ent.Tx, data ent.CreateUserInput) (*ent.User, error)
- func (s *User) Delete(ctx context.Context, where ent.UserWhereUniqueInput) (*ent.User, error)
- func (s *User) DeleteMany(ctx context.Context, where ent.UserWhereInput) (int, error)
- func (s *User) DeleteManyTx(ctx context.Context, tx *ent.Tx, where ent.UserWhereInput) (int, error)
- func (s *User) DeleteTx(ctx context.Context, tx *ent.Tx, where ent.UserWhereUniqueInput) (*ent.User, error)
- func (s *User) Get(ctx context.Context, where *ent.UserWhereInput, orderBy *ent.UserOrder, ...) ([]*ent.User, error)
- func (s *User) GetOne(ctx context.Context, where ent.UserWhereUniqueInput) (*ent.User, error)
- func (s *User) GetOneTx(ctx context.Context, tx *ent.Tx, where ent.UserWhereUniqueInput) (*ent.User, error)
- func (s *User) GetTx(ctx context.Context, tx *ent.Tx, where *ent.UserWhereInput, ...) ([]*ent.User, error)
- func (s *User) Update(ctx context.Context, where ent.UserWhereUniqueInput, data ent.UpdateUserInput) (*ent.User, error)
- func (s *User) UpdateMany(ctx context.Context, where ent.UserWhereInput, data ent.UpdateUserInput) (int, error)
- func (s *User) UpdateManyTx(ctx context.Context, tx *ent.Tx, where ent.UserWhereInput, ...) (int, error)
- func (s *User) UpdateTx(ctx context.Context, tx *ent.Tx, where ent.UserWhereUniqueInput, ...) (*ent.User, error)
- func (s *User) Upsert(ctx context.Context, data ent.CreateUserInput) (*ent.User, error)
- func (s *User) UpsertMany(ctx context.Context, data []ent.CreateUserInput) (int, error)
- func (s *User) UpsertManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreateUserInput) (int, error)
- func (s *User) UpsertTx(ctx context.Context, tx *ent.Tx, data ent.CreateUserInput) (*ent.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrServiceNotSetInContext = "service is not set in context"
)
Functions ¶
This section is empty.
Types ¶
type AdminUser ¶
type AdminUser struct {
// contains filtered or unexported fields
}
func NewAdminUser ¶
func NewAdminUser(r *repo.Repository) *AdminUser
func (*AdminUser) Connection ¶
func (s *AdminUser) Connection(ctx context.Context, where *ent.AdminUserWhereInput, orderBy *ent.AdminUserOrder, skip *int, first *int, last *int) (*ent.AdminUserConnection, error)
func (*AdminUser) CreateMany ¶
func (*AdminUser) CreateManyTx ¶
func (*AdminUser) DeleteMany ¶
func (*AdminUser) DeleteManyTx ¶
func (*AdminUser) Update ¶
func (s *AdminUser) Update(ctx context.Context, where ent.AdminUserWhereUniqueInput, data ent.UpdateAdminUserInput) (*ent.AdminUser, error)
func (*AdminUser) UpdateMany ¶
func (s *AdminUser) UpdateMany(ctx context.Context, where ent.AdminUserWhereInput, data ent.UpdateAdminUserInput) (int, error)
func (*AdminUser) UpdateManyTx ¶
func (*AdminUser) UpsertMany ¶
func (*AdminUser) UpsertManyTx ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func NewEntity ¶
func NewEntity(schemaManager SchemaManager) *Entity
func (Entity) CreateEntity ¶
func (Entity) DeleteEntity ¶
func (Entity) EntityEdges ¶
func (Entity) EntityFields ¶
func (Entity) EntityRelatedEntity ¶
func (Entity) UpdateEntity ¶
func (e Entity) UpdateEntity(ctx context.Context, where entity.EntityWhereUniqueInput, data entity.UpdateEntityInput) (*entity.Entity, error)
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewFile ¶
func NewFile(r *repo.Repository) *File
func (*File) Connection ¶
func (*File) CreateMany ¶
func (*File) CreateManyTx ¶
func (*File) DeleteMany ¶
func (*File) DeleteManyTx ¶
func (*File) Update ¶
func (s *File) Update(ctx context.Context, where ent.FileWhereUniqueInput, data ent.UpdateFileInput) (*ent.File, error)
func (*File) UpdateMany ¶
func (s *File) UpdateMany(ctx context.Context, where ent.FileWhereInput, data ent.UpdateFileInput) (int, error)
func (*File) UpdateManyTx ¶
func (*File) UpsertMany ¶
func (*File) UpsertManyTx ¶
type FileManager ¶
type Permission ¶
type Permission struct {
// contains filtered or unexported fields
}
func NewPermission ¶
func NewPermission(r *repo.Repository) *Permission
func (*Permission) Connection ¶
func (s *Permission) Connection(ctx context.Context, where *ent.PermissionWhereInput, orderBy *ent.PermissionOrder, skip *int, first *int, last *int) (*ent.PermissionConnection, error)
func (*Permission) Create ¶
func (s *Permission) Create(ctx context.Context, data ent.CreatePermissionInput) (*ent.Permission, error)
func (*Permission) CreateMany ¶
func (s *Permission) CreateMany(ctx context.Context, data []ent.CreatePermissionInput) ([]*ent.Permission, error)
func (*Permission) CreateManyTx ¶
func (s *Permission) CreateManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreatePermissionInput) ([]*ent.Permission, error)
func (*Permission) CreateTx ¶
func (s *Permission) CreateTx(ctx context.Context, tx *ent.Tx, data ent.CreatePermissionInput) (*ent.Permission, error)
func (*Permission) Delete ¶
func (s *Permission) Delete(ctx context.Context, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
func (*Permission) DeleteMany ¶
func (s *Permission) DeleteMany(ctx context.Context, where ent.PermissionWhereInput) (int, error)
func (*Permission) DeleteManyTx ¶
func (s *Permission) DeleteManyTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereInput) (int, error)
func (*Permission) DeleteTx ¶
func (s *Permission) DeleteTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
func (*Permission) Get ¶
func (s *Permission) Get(ctx context.Context, where *ent.PermissionWhereInput, orderBy *ent.PermissionOrder, skip *int, first *int, last *int) ([]*ent.Permission, error)
func (*Permission) GetOne ¶
func (s *Permission) GetOne(ctx context.Context, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
func (*Permission) GetOneTx ¶
func (s *Permission) GetOneTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereUniqueInput) (*ent.Permission, error)
func (*Permission) GetTx ¶
func (s *Permission) GetTx(ctx context.Context, tx *ent.Tx, where *ent.PermissionWhereInput, orderBy *ent.PermissionOrder, skip *int, first *int, last *int) ([]*ent.Permission, error)
func (*Permission) Update ¶
func (s *Permission) Update(ctx context.Context, where ent.PermissionWhereUniqueInput, data ent.UpdatePermissionInput) (*ent.Permission, error)
func (*Permission) UpdateMany ¶
func (s *Permission) UpdateMany(ctx context.Context, where ent.PermissionWhereInput, data ent.UpdatePermissionInput) (int, error)
func (*Permission) UpdateManyTx ¶
func (s *Permission) UpdateManyTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereInput, data ent.UpdatePermissionInput) (int, error)
func (*Permission) UpdateTx ¶
func (s *Permission) UpdateTx(ctx context.Context, tx *ent.Tx, where ent.PermissionWhereUniqueInput, data ent.UpdatePermissionInput) (*ent.Permission, error)
func (*Permission) Upsert ¶
func (s *Permission) Upsert(ctx context.Context, data ent.CreatePermissionInput) (*ent.Permission, error)
func (*Permission) UpsertMany ¶
func (s *Permission) UpsertMany(ctx context.Context, data []ent.CreatePermissionInput) (int, error)
func (*Permission) UpsertManyTx ¶
func (s *Permission) UpsertManyTx(ctx context.Context, tx *ent.Tx, data []ent.CreatePermissionInput) (int, error)
func (*Permission) UpsertTx ¶
func (s *Permission) UpsertTx(ctx context.Context, tx *ent.Tx, data ent.CreatePermissionInput) (*ent.Permission, error)
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func NewRole ¶
func NewRole(r *repo.Repository) *Role
func (*Role) Connection ¶
func (*Role) CreateMany ¶
func (*Role) CreateManyTx ¶
func (*Role) DeleteMany ¶
func (*Role) DeleteManyTx ¶
func (*Role) Update ¶
func (s *Role) Update(ctx context.Context, where ent.RoleWhereUniqueInput, data ent.UpdateRoleInput) (*ent.Role, error)
func (*Role) UpdateMany ¶
func (s *Role) UpdateMany(ctx context.Context, where ent.RoleWhereInput, data ent.UpdateRoleInput) (int, error)
func (*Role) UpdateManyTx ¶
func (*Role) UpsertMany ¶
func (*Role) UpsertManyTx ¶
type SchemaManager ¶
type Service ¶
type Service struct {
// Node svc.Node
Entity *Entity
Permission svc.Permission
Role svc.Role
User svc.User
AdminUser svc.AdminUser
File svc.File
}
func New ¶
func New(repository *repo.Repository, schemaManager generator.SchemaManager) *Service
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser(r *repo.Repository) *User
func (*User) Connection ¶
func (*User) CreateMany ¶
func (*User) CreateManyTx ¶
func (*User) DeleteMany ¶
func (*User) DeleteManyTx ¶
func (*User) Update ¶
func (s *User) Update(ctx context.Context, where ent.UserWhereUniqueInput, data ent.UpdateUserInput) (*ent.User, error)
func (*User) UpdateMany ¶
func (s *User) UpdateMany(ctx context.Context, where ent.UserWhereInput, data ent.UpdateUserInput) (int, error)
func (*User) UpdateManyTx ¶
func (*User) UpsertMany ¶
func (*User) UpsertManyTx ¶
Click to show internal directories.
Click to hide internal directories.