server

package
v0.0.0-...-b19dd4d Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

type Echo int

func (*Echo) Echo

func (e *Echo) Echo(args *proto.Echo, reply *proto.Echo) (err error)

type Server

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

func NewServer

func NewServer(listen string, log *logrus.Entry, opts ...ServerOption) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) StartAndServe

func (s *Server) StartAndServe() (err error)

type ServerOption

type ServerOption func(*Server)

func WithAuth

func WithAuth(token string) ServerOption

Jump to

Keyboard shortcuts

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