design

package
v0.0.0-...-c7b2723 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminAuth = APIKeySecurity("adminAuth", func() {
	Description("トークン(admin)")
	Header("X-Authorization")
})

管理者しか使えない機能

View Source
var CorsConfig = map[string]*goacors.GoaCORSConfig{
	"develop":    devCORS,
	"staging":    stagingCORS,
	"production": productionCORS,
}
View Source
var GAECronAuth = APIKeySecurity("gaeCronAuth", func() {
	Description("gae cron")
	Header("X-Appengine-Cron")
})

cron

View Source
var GeneralAuth = APIKeySecurity("generalAuth", func() {
	Description("トークン(general)")
	Header("X-Authorization")
})

ユーザーしか使えない機能

View Source
var GuestAuth = APIKeySecurity("guestAuth", func() {
	Description("トークン(guest)")
	Header("X-Authorization")
})

ゲストでも使える機能

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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