server

package
v0.0.0-...-246b716 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

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

func NewApiServer

func NewApiServer(i *OspfServer, g *grpc.Server, hosts string) *ApiServer

func (*ApiServer) Disable

func (*ApiServer) Enable

func (*ApiServer) Exit

func (s *ApiServer) Exit()

func (*ApiServer) Serve

func (s *ApiServer) Serve(wg *sync.WaitGroup)

type DecisionChMsg

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

func (*DecisionChMsg) String

func (msg *DecisionChMsg) String() string

type DecisionChMsgType

type DecisionChMsgType uint8
const (
	DECISION_CH_MSG_TYPE_DO DecisionChMsgType
	DECISION_CH_MSG_TYPE_EXIT
)

func (DecisionChMsgType) String

func (msgType DecisionChMsgType) String() string

type OspfChMsg

type OspfChMsg uint8
const (
	OSPF_CH_MSG_EXIT OspfChMsg
)

type OspfServer

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

func NewOspfServer

func NewOspfServer(configFile, configType string) *OspfServer

func (*OspfServer) Exit

func (ospf *OspfServer) Exit()

func (*OspfServer) Serve

func (ospf *OspfServer) Serve(wg *sync.WaitGroup)

func (*OspfServer) SetDisable

func (ospf *OspfServer) SetDisable()

func (*OspfServer) SetEnable

func (ospf *OspfServer) SetEnable()

type UpdateChMsg

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

func (*UpdateChMsg) String

func (msg *UpdateChMsg) String() string

type UpdateChMsgType

type UpdateChMsgType uint8
const (
	UPDATE_CH_MSG_TYPE_CONFIG_CHANGED UpdateChMsgType
	UPDATE_CH_MSG_TYPE_KERNEL_CHANGED
	UPDATE_CH_MSG_TYPE_OSPF_ENABLE
	UPDATE_CH_MSG_TYPE_OSPF_DISABLE
	UPDATE_CH_MSG_TYPE_CIRCUIT_ENABLE
	UPDATE_CH_MSG_TYPE_CIRCUIT_DISABLE
	UPDATE_CH_MSG_TYPE_ADJACENCY_UP
	UPDATE_CH_MSG_TYPE_ADJACENCY_DOWN
	UPDATE_CH_MSG_TYPE_LSDB_CHANGED
	UPDATE_CH_MSG_TYPE_EXIT
)

func (UpdateChMsgType) String

func (msgType UpdateChMsgType) String() string

Jump to

Keyboard shortcuts

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