web

package
v0.0.0-...-c8d5bbb Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationHandlers

type AuthenticationHandlers struct {
	// contains filtered or unexported fields
}

func NewAuthenticationHandlers

func NewAuthenticationHandlers(cookieName string, findapi *api.Api) *AuthenticationHandlers

func (*AuthenticationHandlers) GetUserFromSession

func (self *AuthenticationHandlers) GetUserFromSession(r *http.Request) (*api.Response, error)

func (*AuthenticationHandlers) HasSession

func (self *AuthenticationHandlers) HasSession(r *http.Request) bool

func (*AuthenticationHandlers) LoginHandler

func (self *AuthenticationHandlers) LoginHandler(redirectUrl string) func(http.ResponseWriter, *http.Request)

func (*AuthenticationHandlers) LogoutHandler

func (self *AuthenticationHandlers) LogoutHandler(redirectUrl string) func(http.ResponseWriter, *http.Request)

func (*AuthenticationHandlers) SessionMiddleware

func (self *AuthenticationHandlers) SessionMiddleware(redirectUrl string, unprotected []string) func(http.Handler) http.Handler

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(findapi *api.Api) *Client

func (*Client) Run

func (self *Client) Run(HTTP_PORT int)

Jump to

Keyboard shortcuts

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