Documentation ¶
Index ¶
- type SQLUserProvider
- func (up *SQLUserProvider) Create(ctx context.Context, u *User) (*User, error)
- func (up *SQLUserProvider) Delete(ctx context.Context, ent rip.Entity) error
- func (up *SQLUserProvider) Get(ctx context.Context, ent rip.Entity) (*User, error)
- func (up SQLUserProvider) ListAll(ctx context.Context) ([]*User, error)
- func (up *SQLUserProvider) Update(ctx context.Context, u *User) error
- type User
- type UserProvider
- func (up *UserProvider) Create(ctx context.Context, u *User) (*User, error)
- func (up *UserProvider) Delete(ctx context.Context, ent rip.Entity) error
- func (up UserProvider) Get(ctx context.Context, ent rip.Entity) (*User, error)
- func (up UserProvider) ListAll(ctx context.Context) ([]*User, error)
- func (up *UserProvider) Update(ctx context.Context, u *User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLUserProvider ¶ added in v0.1.4
type SQLUserProvider struct {
// contains filtered or unexported fields
}
func NewSQLUserProvider ¶ added in v0.1.4
func NewSQLUserProvider(db *sql.DB) (*SQLUserProvider, error)
type User ¶
type User struct { ID int `json:"id" xml:"id"` BirthDate time.Time `json:"birth_date" xml:"birth_date"` Name string `json:"name" xml:"name"` EmailAddress string `json:"email_address" xml:"email_address"` }
func (*User) IDFromString ¶
type UserProvider ¶
type UserProvider struct {
// contains filtered or unexported fields
}
func NewUserProvider ¶
func NewUserProvider() *UserProvider
Click to show internal directories.
Click to hide internal directories.