Documentation ¶
Index ¶
- type Auth
- func (s *Auth) CheckSession(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
- func (s *Auth) Login(ctx *edge.RequestCtx, req *auth.LoginRequest, res *auth.Authorization)
- func (s *Auth) MustAuthorized(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
- func (s *Auth) Register(ctx *edge.RequestCtx, req *auth.RegisterRequest, res *auth.Authorization)
- type TaskManager
- func (m *TaskManager) Create(ctx *edge.RequestCtx, req *task.CreateRequest, res *task.TaskView)
- func (m *TaskManager) Delete(ctx *edge.RequestCtx, req *task.DeleteRequest, res *task.Bool)
- func (m *TaskManager) Get(ctx *edge.RequestCtx, req *task.GetRequest, res *task.TaskView)
- func (m *TaskManager) List(ctx *edge.RequestCtx, req *task.ListRequest, res *task.TaskViewMany)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶ added in v0.12.30
type Auth struct {
auth.ModuleBase
}
func (*Auth) CheckSession ¶ added in v0.12.30
func (s *Auth) CheckSession(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
CheckSession is a middleware try to load the user info from the session id.
func (*Auth) Login ¶ added in v0.12.30
func (s *Auth) Login(ctx *edge.RequestCtx, req *auth.LoginRequest, res *auth.Authorization)
func (*Auth) MustAuthorized ¶ added in v0.12.30
func (s *Auth) MustAuthorized(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
MustAuthorized is a middleware to make sure the following handlers are only executed if a valid session id was provided in the request
func (*Auth) Register ¶ added in v0.12.30
func (s *Auth) Register(ctx *edge.RequestCtx, req *auth.RegisterRequest, res *auth.Authorization)
type TaskManager ¶
type TaskManager struct {
task.ModuleBase
}
func (*TaskManager) Create ¶
func (m *TaskManager) Create(ctx *edge.RequestCtx, req *task.CreateRequest, res *task.TaskView)
func (*TaskManager) Delete ¶
func (m *TaskManager) Delete(ctx *edge.RequestCtx, req *task.DeleteRequest, res *task.Bool)
func (*TaskManager) Get ¶
func (m *TaskManager) Get(ctx *edge.RequestCtx, req *task.GetRequest, res *task.TaskView)
func (*TaskManager) List ¶
func (m *TaskManager) List(ctx *edge.RequestCtx, req *task.ListRequest, res *task.TaskViewMany)
Click to show internal directories.
Click to hide internal directories.