organization

package
v1.69.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: AGPL-3.0 Imports: 11 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestSubdomain

func GetRequestSubdomain(r *http.Request) string

GetRequestSubdomain extracts subdomain from referring URL.

func GetSubdomainFromHost

func GetSubdomainFromHost(r *http.Request) string

GetSubdomainFromHost extracts the subdomain from the requesting URL.

Types

type Handler

type Handler struct {
	Runtime *env.Runtime
	Store   *domain.Store
}

Handler contains the runtime information such as logging and database.

func (*Handler) Get

func (h *Handler) Get(w http.ResponseWriter, r *http.Request)

Get returns the requested organization.

func (*Handler) GetGlobalSetting added in v1.69.0

func (h *Handler) GetGlobalSetting(w http.ResponseWriter, r *http.Request)

GetGlobalSetting returns the requested organization level setting.

func (*Handler) GetInstanceSetting added in v1.69.0

func (h *Handler) GetInstanceSetting(w http.ResponseWriter, r *http.Request)

GetInstanceSetting returns the requested organization level setting.

func (*Handler) SaveGlobalSetting added in v1.69.0

func (h *Handler) SaveGlobalSetting(w http.ResponseWriter, r *http.Request)

SaveGlobalSetting saves org level setting.

func (*Handler) SaveInstanceSetting added in v1.69.0

func (h *Handler) SaveInstanceSetting(w http.ResponseWriter, r *http.Request)

SaveInstanceSetting saves org level setting.

func (*Handler) Update

func (h *Handler) Update(w http.ResponseWriter, r *http.Request)

Update saves organization amends.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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