server

package
v0.0.0-...-3403bd2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdate

func CheckForUpdate()

func FileServer

func FileServer(r chi.Router, path string, root http.FileSystem)

FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem.

Types

type PushConn

type PushConn struct {
}

type Web

type Web struct {
	service.BaseService
	*grpcweb.WrappedGrpcServer

	Err error
	// contains filtered or unexported fields
}

Provides HTTP web services

func NewWeb

func NewWeb(host string) *Web

func (*Web) Addr

func (s *Web) Addr() *net.TCPAddr

func (*Web) Auth

func (s *Web) Auth(ctx context.Context, req *api_pb.AuthRequest) (*api_pb.AuthReply, error)

func (*Web) Close

func (s *Web) Close() error

func (*Web) Events

func (*Web) Handler

func (s *Web) Handler(next http.Handler) http.Handler

func (*Web) OnStart

func (s *Web) OnStart() error

func (*Web) OnStop

func (s *Web) OnStop()

func (*Web) Register

func (s *Web) Register(ctx context.Context, req *api_pb.RegisterRequest) (*api_pb.RegisterReply, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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