server

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdContext

type EtcdContext struct {
	Host       string
	ClientPort string
	PeerPort   string
	DataDir    string
	JoinAddr   string
	Name       string
}

func (*EtcdContext) AddMember

func (c *EtcdContext) AddMember(peerUrl string) (string, error)

type Server

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

func NewServer

func NewServer(cfg *base.ServerConfig) (*Server, error)

func (*Server) CleanupEtcdDir

func (s *Server) CleanupEtcdDir()

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context, stopped chan struct{})

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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