server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package server contains http and grpc server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServer

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

func NewGrpcServer

func NewGrpcServer() (*GrpcServer, error)

func (*GrpcServer) GetLogger

func (srv *GrpcServer) GetLogger() *dlog.Logger

func (*GrpcServer) LoggerIdentity

func (srv *GrpcServer) LoggerIdentity(justCallMe func() dlog.Identity) dlog.Identity

func (*GrpcServer) Ping

func (srv *GrpcServer) Ping(ctx context.Context, ping *pb.Ping) (*pb.Pong, error)

func (*GrpcServer) SetLogger

func (srv *GrpcServer) SetLogger(logger *dlog.Logger)

type HttpServer

type HttpServer struct {
}

func NewHttpServer

func NewHttpServer() (*HttpServer, error)

func (*HttpServer) Handler

func (srv *HttpServer) Handler() http.Handler

func (*HttpServer) NoPayload

func (srv *HttpServer) NoPayload(ctx context.Context, _ interface{}) (*pb.Pong, error)

func (*HttpServer) Ping

func (srv *HttpServer) Ping(ctx context.Context, ping *pb.Ping) (*pb.Pong, error)

func (*HttpServer) RegisterHandler

func (srv *HttpServer) RegisterHandler(mux *ihttp.JsonHandlerMux)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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