rpc

package
v0.12.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL