service

package
v1.29.0-mobile.5 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: BSD-2-Clause Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	service.Context

	AuthClient() auth.Client
	MetricClient() metric.Client
	PermissionClient() permission.Client
	DataClient() dataClient.Client

	ConfirmationSession() confirmationStore.ConfirmationSession
	MessagesSession() messageStore.MessagesSession
	PermissionsSession() permissionStore.PermissionsSession
	ProfilesSession() profileStore.ProfilesSession
	SessionsSession() sessionStore.SessionsSession
	UsersSession() userStore.UsersSession
}

type HandlerFunc

type HandlerFunc func(context Context)

type Route

type Route struct {
	Method  string
	Path    string
	Handler HandlerFunc
}

func MakeRoute

func MakeRoute(method string, path string, handler HandlerFunc) Route

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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