Documentation ¶
Index ¶
- type User
- type UserProvider
- func (up *UserProvider) Create(ctx context.Context, u *User) (*User, error)
- func (up *UserProvider) Delete(ctx context.Context, res rip.IdentifiableResource) error
- func (up UserProvider) Get(ctx context.Context, res rip.IdentifiableResource) (*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 User ¶
type User struct { ID int `json:"id" xml:"id"` Name string `json:"name" xml:"name"` BirthDate time.Time `json:"birth_date" xml:"birth_date"` }
func (*User) IDFromString ¶
type UserProvider ¶
type UserProvider struct {
// contains filtered or unexported fields
}
func NewUserProvider ¶
func NewUserProvider() *UserProvider
func (*UserProvider) Delete ¶
func (up *UserProvider) Delete(ctx context.Context, res rip.IdentifiableResource) error
func (UserProvider) Get ¶
func (up UserProvider) Get(ctx context.Context, res rip.IdentifiableResource) (*User, error)
Click to show internal directories.
Click to hide internal directories.