handlers

package
v0.0.0-...-4c2dc58 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 9 Imported by: 2

README

Golang.hr Platform handlers package

Handlers package for Golang.hr Platform.

NOTICE: Package under active development. No ETA atm...

Design Concept / TODO
  • HTTP Handler
License
The MIT License (MIT)

Copyright (c) 2015 Golang Croatia

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

Handler -

func New

func New(serv services.Servicer, logger *logging.Entry) (*Handler, error)

New -

type HttpGrpcHandler

type HttpGrpcHandler struct {
	*runtime.ServeMux

	// Servicer - Is a Servicer interface
	services.Servicer

	*logging.Entry

	CertFile   *options.Option
	CertDomain *options.Option
	GrpcAddr   *options.Option
	// contains filtered or unexported fields
}

HttpGrpcHandler -

func NewHttpGrpcHandler

func NewHttpGrpcHandler(serv services.Servicer, logger *logging.Entry, handler func(context.Context, *runtime.ServeMux, *grpc.ClientConn) error) (*HttpGrpcHandler, error)

NewHttpGrpcHandler - Will return back new HTTP GRPC handler

func (*HttpGrpcHandler) RegisterHandlerTLS

func (hgh *HttpGrpcHandler) RegisterHandlerTLS(handler func(context.Context, *runtime.ServeMux, *grpc.ClientConn) error) error

RegisterHandlerTLS - Will register new TLS

type HttpHandler

type HttpHandler struct{}

HttpHandler -

func NewHttpHandler

func NewHttpHandler() (*HttpHandler, error)

NewHttpHandler -

Jump to

Keyboard shortcuts

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