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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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