service

package
v1.9.1 Latest Latest
Warning

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

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

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

	MetricServicesClient() metricservicesClient.Client
	UserServicesClient() userservicesClient.Client
	DataServicesClient() dataservicesClient.Client

	MessageStoreSession() messageStore.Session
	NotificationStoreSession() notificationStore.Session
	PermissionStoreSession() permissionStore.Session
	ProfileStoreSession() profileStore.Session
	SessionStoreSession() sessionStore.Session
	UserStoreSession() userStore.Session

	AuthenticationDetails() userservicesClient.AuthenticationDetails
	SetAuthenticationDetails(authenticationDetails userservicesClient.AuthenticationDetails)
}

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