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 (s *ApiServer) Disable(ctx context.Context, in *api.DisableRequest) (*api.DisableResponse, error)
func (*ApiServer) Enable ¶
func (s *ApiServer) Enable(ctx context.Context, in *api.EnableRequest) (*api.EnableResponse, error)
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 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
Click to show internal directories.
Click to hide internal directories.