Documentation ¶
Index ¶
- type AuthService
- type DB
- type LoggingService
- func (ls *LoggingService) Create(ctx context.Context, req *user.CreateReq) (resp *user.Resp, err error)
- func (ls *LoggingService) Delete(ctx context.Context, req *user.IDReq) (resp *user.MessageResp, err error)
- func (ls *LoggingService) List(ctx context.Context, req *user.ListReq) (resp *user.ListResp, err error)
- func (ls *LoggingService) Update(ctx context.Context, req *user.UpdateReq) (resp *user.Resp, err error)
- func (ls *LoggingService) View(ctx context.Context, req *user.IDReq) (resp *user.Resp, err error)
- type Securer
- type Service
- func (s *Service) Create(c context.Context, req *user.CreateReq) (*user.Resp, error)
- func (s *Service) Delete(c context.Context, req *user.IDReq) (*user.MessageResp, error)
- func (s *Service) List(c context.Context, req *user.ListReq) (*user.ListResp, error)
- func (s *Service) Update(c context.Context, req *user.UpdateReq) (*user.Resp, error)
- func (s *Service) View(c context.Context, req *user.IDReq) (*user.Resp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService represents authentication context service
type DB ¶
type DB interface { Create(orm.DB, twisk.User) (*twisk.User, error) View(orm.DB, int64) (*twisk.User, error) List(orm.DB, string, int, int) ([]twisk.User, error) Delete(orm.DB, *twisk.User) error Update(orm.DB, *twisk.User) (*twisk.User, error) }
DB represents user database interface
type LoggingService ¶
LoggingService represents iam logging service
func NewLoggingService ¶
func NewLoggingService(svc user.User, logger twisk.Logger) *LoggingService
NewLoggingService creates new Template logging service
func (*LoggingService) Create ¶
func (ls *LoggingService) Create(ctx context.Context, req *user.CreateReq) (resp *user.Resp, err error)
Create user logging
func (*LoggingService) Delete ¶
func (ls *LoggingService) Delete(ctx context.Context, req *user.IDReq) (resp *user.MessageResp, err error)
Delete user logging
func (*LoggingService) List ¶
func (ls *LoggingService) List(ctx context.Context, req *user.ListReq) (resp *user.ListResp, err error)
List user logging
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents user application service
Click to show internal directories.
Click to hide internal directories.