gorilla

package
v0.0.0-...-d9d72d2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChannelRequestMaker

func CreateChannelRequestMaker(request *http.Request) (interface{}, error)

func CreateChannelResponsePresenter

func CreateChannelResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func DefaultResponsePresenter

func DefaultResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func DeleteChannelRequestMaker

func DeleteChannelRequestMaker(request *http.Request) (interface{}, error)

func DeleteChannelResponsePresenter

func DeleteChannelResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func DeleteTeamRequestMaker

func DeleteTeamRequestMaker(request *http.Request) (interface{}, error)

func DeleteTeamResponsePresenter

func DeleteTeamResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func GetChannelRequestMaker

func GetChannelRequestMaker(request *http.Request) (interface{}, error)

func GetChannelResponsePresenter

func GetChannelResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func GetChannelsRequestMaker

func GetChannelsRequestMaker(request *http.Request) (interface{}, error)

func GetChannelsResponsePresenter

func GetChannelsResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func GetTeamRequestMaker

func GetTeamRequestMaker(request *http.Request) (interface{}, error)

func GetTeamResponsePresenter

func GetTeamResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func SaveTeamRequestMaker

func SaveTeamRequestMaker(request *http.Request) (interface{}, error)

func SaveTeamResponsePresenter

func SaveTeamResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

func UpdateChannelRequestMaker

func UpdateChannelRequestMaker(request *http.Request) (interface{}, error)

func UpdateChannelResponsePresenter

func UpdateChannelResponsePresenter(rw http.ResponseWriter, req *http.Request, result interface{}, err error)

Types

type Server

type Server struct {
	Port int
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port int) *Server

func (*Server) AccountConfirmHandler

func (s *Server) AccountConfirmHandler() RequestHandlerFunc

func (*Server) AccountLoginHandler

func (s *Server) AccountLoginHandler() RequestHandlerFunc

func (*Server) AccountLogoutHandler

func (s *Server) AccountLogoutHandler() RequestHandlerFunc

func (*Server) AccountRegisterHandler

func (s *Server) AccountRegisterHandler() RequestHandlerFunc

func (*Server) DefaultMiddleware

func (s *Server) DefaultMiddleware(requiresUser bool) *middleware.MiddlewareChain

func (*Server) GetUser

func (s *Server) GetUser(request *http.Request) *msgcore.User

func (*Server) LoginPageHandler

func (s *Server) LoginPageHandler() RequestHandlerFunc

func (*Server) MakeHandlerFunc

func (s *Server) MakeHandlerFunc(operation interface{},
	serviceRequestMaker common.ServiceRequestMaker,
	serviceResponsePresenter common.ServiceResponseMaker) common.HttpHandlerFunc

func (*Server) RootPageHandler

func (s *Server) RootPageHandler() RequestHandlerFunc

*

  • Should see if we are logged in - then go to the team selection page otherwise
  • to login page.

func (*Server) Run

func (s *Server) Run()

func (*Server) SendServiceResponse

func (s *Server) SendServiceResponse(request *http.Request, rw http.ResponseWriter, result interface{}, err error)

*

  • Takes the response from a service operation (or an error) and presents it
  • back via the response mechanism.

func (*Server) SetAuthMiddleware

func (s *Server) SetAuthMiddleware(am *authmw.AuthMiddleware)

func (*Server) SetAuthService

func (s *Server) SetAuthService(authSvc authcore.IAuthService)

func (*Server) SetCookieStore

func (s *Server) SetCookieStore(cs *sessions.CookieStore)

func (*Server) SetServiceGroup

func (s *Server) SetServiceGroup(sg *msgcore.ServiceGroup)

func (*Server) Stop

func (s *Server) Stop()

func (*Server) TeamListPageHandler

func (s *Server) TeamListPageHandler() RequestHandlerFunc

func (*Server) TeamPageHandler

func (s *Server) TeamPageHandler() RequestHandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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