server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2017 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2017 Joan Llopis. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroServer

type MicroServer struct {
	GrpcServer *grpc.Server
	GrpcGwMux  *gw.ServeMux
	// contains filtered or unexported fields
}

func New

func New(c *getconf.GetConf) *MicroServer

New crea un nuevo MicroServer a partir de las opciones de configuración proporcionadas. Devuelve una referencia a MicroServer. La función siempre devuelve una estructura. Si se produce un error en su creación, se devuelve &MicroServer{}

func (*MicroServer) Register

func (ms *MicroServer) Register() []error

func (*MicroServer) Serve

func (ms *MicroServer) Serve() error

Serve inica los servicios grpc y http para escuchar peticiones

Jump to

Keyboard shortcuts

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