Documentation ¶
Index ¶
- type User
- type UserProvider
- func (up *UserProvider) Create(ctx context.Context, u User) (User, error)
- func (up *UserProvider) Delete(ctx context.Context, idString string) error
- func (up UserProvider) Get(ctx context.Context, idString string) (User, error)
- func (up UserProvider) List(ctx context.Context, offset, limit int) ([]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"` BirthDate time.Time `json:"birth_date" xml:"birth_date"` Name string `json:"name" xml:"name"` EmailAddress string `json:"email_address" xml:"email_address"` }
start User Entity OMIT
type UserProvider ¶
type UserProvider struct {
// contains filtered or unexported fields
}
start User Provider OMIT
func NewUserProvider ¶
func NewUserProvider(logger *log.Logger) *UserProvider
func (*UserProvider) Delete ¶
func (up *UserProvider) Delete(ctx context.Context, idString string) error
Click to show internal directories.
Click to hide internal directories.