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) *rony.Error
- func (s *Auth) MustAuthorized(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
- func (s *Auth) Register(ctx *edge.RequestCtx, req *auth.RegisterRequest, res *auth.Authorization) *rony.Error
- type TaskManager
- func (m *TaskManager) Create(ctx *edge.RequestCtx, req *task.CreateRequest, res *task.TaskView) *rony.Error
- func (m *TaskManager) Delete(ctx *edge.RequestCtx, req *task.DeleteRequest, res *task.Bool) *rony.Error
- func (m *TaskManager) Get(ctx *edge.RequestCtx, req *task.GetRequest, res *task.TaskView) *rony.Error
- func (m *TaskManager) List(ctx *edge.RequestCtx, req *task.ListRequest, res *task.TaskViewMany) *rony.Error
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) *rony.Error
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) *rony.Error
type TaskManager ¶
type TaskManager struct {
task.ModuleBase
}
func (*TaskManager) Create ¶
func (m *TaskManager) Create(ctx *edge.RequestCtx, req *task.CreateRequest, res *task.TaskView) *rony.Error
func (*TaskManager) Delete ¶
func (m *TaskManager) Delete(ctx *edge.RequestCtx, req *task.DeleteRequest, res *task.Bool) *rony.Error
func (*TaskManager) Get ¶
func (m *TaskManager) Get(ctx *edge.RequestCtx, req *task.GetRequest, res *task.TaskView) *rony.Error
func (*TaskManager) List ¶
func (m *TaskManager) List(ctx *edge.RequestCtx, req *task.ListRequest, res *task.TaskViewMany) *rony.Error
Click to show internal directories.
Click to hide internal directories.