goldpapi

package
v0.0.0-...-84f6d3b Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package goldpapi is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

StartServerRequest
StartServerResponse
StopServerRequest
StopServerResponse
GetServerRequest
GetServerResponse
AddInterfaceRequest
AddInterfaceResponse
DeleteInterfaceRequest
DeleteInterfaceResponse
ListInterfaceRequest
ListInterfaceResponse
ListSessionRequest
ListSessionResponse
AddInterfaceAddressRequest
AddInterfaceAddressResponse
DeleteInterfaceAddressRequest
DeleteInterfaceAddressResponse
AddLocalLabelMappingRequest
AddLocalLabelMappingResponse
DeleteLocalLabelMappingRequest
DeleteLocalLabelMappingResponse
GetLabelMappingRequest
GetLabelMappingResponse
ListLabelMappingRequest
ListLabelMappingResponse
MonitorSessionRequest
MonitorSessionResponse
Server
Interface
Session
Mapping

Index

Constants

This section is empty.

Variables

View Source
var LabelAdvMode_name = map[int32]string{
	0: "DOD",
	1: "DU",
}
View Source
var LabelAdvMode_value = map[string]int32{
	"DOD": 0,
	"DU":  1,
}
View Source
var MonitorSessionResponse_Type_name = map[int32]string{
	0: "ADD",
	1: "DEL",
	2: "UPDATE",
}
View Source
var MonitorSessionResponse_Type_value = map[string]int32{
	"ADD":    0,
	"DEL":    1,
	"UPDATE": 2,
}

Functions

func RegisterGoldpApiServer

func RegisterGoldpApiServer(s *grpc.Server, srv GoldpApiServer)

Types

type AddInterfaceAddressRequest

type AddInterfaceAddressRequest struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"`
}

func (*AddInterfaceAddressRequest) Descriptor

func (*AddInterfaceAddressRequest) Descriptor() ([]byte, []int)

func (*AddInterfaceAddressRequest) GetInterface

func (m *AddInterfaceAddressRequest) GetInterface() *Interface

func (*AddInterfaceAddressRequest) ProtoMessage

func (*AddInterfaceAddressRequest) ProtoMessage()

func (*AddInterfaceAddressRequest) Reset

func (m *AddInterfaceAddressRequest) Reset()

func (*AddInterfaceAddressRequest) String

func (m *AddInterfaceAddressRequest) String() string

type AddInterfaceAddressResponse

type AddInterfaceAddressResponse struct {
}

func (*AddInterfaceAddressResponse) Descriptor

func (*AddInterfaceAddressResponse) Descriptor() ([]byte, []int)

func (*AddInterfaceAddressResponse) ProtoMessage

func (*AddInterfaceAddressResponse) ProtoMessage()

func (*AddInterfaceAddressResponse) Reset

func (m *AddInterfaceAddressResponse) Reset()

func (*AddInterfaceAddressResponse) String

func (m *AddInterfaceAddressResponse) String() string

type AddInterfaceRequest

type AddInterfaceRequest struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"`
}

func (*AddInterfaceRequest) Descriptor

func (*AddInterfaceRequest) Descriptor() ([]byte, []int)

func (*AddInterfaceRequest) GetInterface

func (m *AddInterfaceRequest) GetInterface() *Interface

func (*AddInterfaceRequest) ProtoMessage

func (*AddInterfaceRequest) ProtoMessage()

func (*AddInterfaceRequest) Reset

func (m *AddInterfaceRequest) Reset()

func (*AddInterfaceRequest) String

func (m *AddInterfaceRequest) String() string

type AddInterfaceResponse

type AddInterfaceResponse struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"`
}

func (*AddInterfaceResponse) Descriptor

func (*AddInterfaceResponse) Descriptor() ([]byte, []int)

func (*AddInterfaceResponse) GetInterface

func (m *AddInterfaceResponse) GetInterface() *Interface

func (*AddInterfaceResponse) ProtoMessage

func (*AddInterfaceResponse) ProtoMessage()

func (*AddInterfaceResponse) Reset

func (m *AddInterfaceResponse) Reset()

func (*AddInterfaceResponse) String

func (m *AddInterfaceResponse) String() string

type AddLocalLabelMappingRequest

type AddLocalLabelMappingRequest struct {
	FEC   []string `protobuf:"bytes,1,rep,name=FEC" json:"FEC,omitempty"`
	Label uint32   `protobuf:"varint,2,opt,name=label" json:"label,omitempty"`
}

func (*AddLocalLabelMappingRequest) Descriptor

func (*AddLocalLabelMappingRequest) Descriptor() ([]byte, []int)

func (*AddLocalLabelMappingRequest) GetFEC

func (m *AddLocalLabelMappingRequest) GetFEC() []string

func (*AddLocalLabelMappingRequest) GetLabel

func (m *AddLocalLabelMappingRequest) GetLabel() uint32

func (*AddLocalLabelMappingRequest) ProtoMessage

func (*AddLocalLabelMappingRequest) ProtoMessage()

func (*AddLocalLabelMappingRequest) Reset

func (m *AddLocalLabelMappingRequest) Reset()

func (*AddLocalLabelMappingRequest) String

func (m *AddLocalLabelMappingRequest) String() string

type AddLocalLabelMappingResponse

type AddLocalLabelMappingResponse struct {
}

func (*AddLocalLabelMappingResponse) Descriptor

func (*AddLocalLabelMappingResponse) Descriptor() ([]byte, []int)

func (*AddLocalLabelMappingResponse) ProtoMessage

func (*AddLocalLabelMappingResponse) ProtoMessage()

func (*AddLocalLabelMappingResponse) Reset

func (m *AddLocalLabelMappingResponse) Reset()

func (*AddLocalLabelMappingResponse) String

type DeleteInterfaceAddressRequest

type DeleteInterfaceAddressRequest struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"`
}

func (*DeleteInterfaceAddressRequest) Descriptor

func (*DeleteInterfaceAddressRequest) Descriptor() ([]byte, []int)

func (*DeleteInterfaceAddressRequest) GetInterface

func (m *DeleteInterfaceAddressRequest) GetInterface() *Interface

func (*DeleteInterfaceAddressRequest) ProtoMessage

func (*DeleteInterfaceAddressRequest) ProtoMessage()

func (*DeleteInterfaceAddressRequest) Reset

func (m *DeleteInterfaceAddressRequest) Reset()

func (*DeleteInterfaceAddressRequest) String

type DeleteInterfaceAddressResponse

type DeleteInterfaceAddressResponse struct {
}

func (*DeleteInterfaceAddressResponse) Descriptor

func (*DeleteInterfaceAddressResponse) Descriptor() ([]byte, []int)

func (*DeleteInterfaceAddressResponse) ProtoMessage

func (*DeleteInterfaceAddressResponse) ProtoMessage()

func (*DeleteInterfaceAddressResponse) Reset

func (m *DeleteInterfaceAddressResponse) Reset()

func (*DeleteInterfaceAddressResponse) String

type DeleteInterfaceRequest

type DeleteInterfaceRequest struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"`
}

func (*DeleteInterfaceRequest) Descriptor

func (*DeleteInterfaceRequest) Descriptor() ([]byte, []int)

func (*DeleteInterfaceRequest) GetInterface

func (m *DeleteInterfaceRequest) GetInterface() *Interface

func (*DeleteInterfaceRequest) ProtoMessage

func (*DeleteInterfaceRequest) ProtoMessage()

func (*DeleteInterfaceRequest) Reset

func (m *DeleteInterfaceRequest) Reset()

func (*DeleteInterfaceRequest) String

func (m *DeleteInterfaceRequest) String() string

type DeleteInterfaceResponse

type DeleteInterfaceResponse struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"`
}

func (*DeleteInterfaceResponse) Descriptor

func (*DeleteInterfaceResponse) Descriptor() ([]byte, []int)

func (*DeleteInterfaceResponse) GetInterface

func (m *DeleteInterfaceResponse) GetInterface() *Interface

func (*DeleteInterfaceResponse) ProtoMessage

func (*DeleteInterfaceResponse) ProtoMessage()

func (*DeleteInterfaceResponse) Reset

func (m *DeleteInterfaceResponse) Reset()

func (*DeleteInterfaceResponse) String

func (m *DeleteInterfaceResponse) String() string

type DeleteLocalLabelMappingRequest

type DeleteLocalLabelMappingRequest struct {
	FEC []string `protobuf:"bytes,1,rep,name=FEC" json:"FEC,omitempty"`
}

func (*DeleteLocalLabelMappingRequest) Descriptor

func (*DeleteLocalLabelMappingRequest) Descriptor() ([]byte, []int)

func (*DeleteLocalLabelMappingRequest) GetFEC

func (m *DeleteLocalLabelMappingRequest) GetFEC() []string

func (*DeleteLocalLabelMappingRequest) ProtoMessage

func (*DeleteLocalLabelMappingRequest) ProtoMessage()

func (*DeleteLocalLabelMappingRequest) Reset

func (m *DeleteLocalLabelMappingRequest) Reset()

func (*DeleteLocalLabelMappingRequest) String

type DeleteLocalLabelMappingResponse

type DeleteLocalLabelMappingResponse struct {
}

func (*DeleteLocalLabelMappingResponse) Descriptor

func (*DeleteLocalLabelMappingResponse) Descriptor() ([]byte, []int)

func (*DeleteLocalLabelMappingResponse) ProtoMessage

func (*DeleteLocalLabelMappingResponse) ProtoMessage()

func (*DeleteLocalLabelMappingResponse) Reset

func (*DeleteLocalLabelMappingResponse) String

type GRPCServer

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

func NewGRPCServer

func NewGRPCServer(hosts string, ldpServer *server.Server) *GRPCServer

func (*GRPCServer) AddInterface

func (*GRPCServer) AddInterfaceAddress

func (*GRPCServer) AddLocalLabelMapping

func (*GRPCServer) DeleteInterface

func (*GRPCServer) GetLabelMapping

func (*GRPCServer) GetServer

func (g *GRPCServer) GetServer(ctx context.Context, arg *GetServerRequest) (*GetServerResponse, error)

func (*GRPCServer) ListInterface

func (*GRPCServer) ListLabelMapping

func (*GRPCServer) ListSession

func (*GRPCServer) MonitorSession

func (*GRPCServer) Serve

func (g *GRPCServer) Serve() error

func (*GRPCServer) StartServer

func (g *GRPCServer) StartServer(ctx context.Context, arg *StartServerRequest) (*StartServerResponse, error)

func (*GRPCServer) StopServer

func (g *GRPCServer) StopServer(ctx context.Context, arg *StopServerRequest) (*StopServerResponse, error)

type GetLabelMappingRequest

type GetLabelMappingRequest struct {
	Prefix string `protobuf:"bytes,1,opt,name=prefix" json:"prefix,omitempty"`
}

func (*GetLabelMappingRequest) Descriptor

func (*GetLabelMappingRequest) Descriptor() ([]byte, []int)

func (*GetLabelMappingRequest) GetPrefix

func (m *GetLabelMappingRequest) GetPrefix() string

func (*GetLabelMappingRequest) ProtoMessage

func (*GetLabelMappingRequest) ProtoMessage()

func (*GetLabelMappingRequest) Reset

func (m *GetLabelMappingRequest) Reset()

func (*GetLabelMappingRequest) String

func (m *GetLabelMappingRequest) String() string

type GetLabelMappingResponse

type GetLabelMappingResponse struct {
	Mapping *Mapping `protobuf:"bytes,1,opt,name=mapping" json:"mapping,omitempty"`
}

func (*GetLabelMappingResponse) Descriptor

func (*GetLabelMappingResponse) Descriptor() ([]byte, []int)

func (*GetLabelMappingResponse) GetMapping

func (m *GetLabelMappingResponse) GetMapping() *Mapping

func (*GetLabelMappingResponse) ProtoMessage

func (*GetLabelMappingResponse) ProtoMessage()

func (*GetLabelMappingResponse) Reset

func (m *GetLabelMappingResponse) Reset()

func (*GetLabelMappingResponse) String

func (m *GetLabelMappingResponse) String() string

type GetServerRequest

type GetServerRequest struct {
}

func (*GetServerRequest) Descriptor

func (*GetServerRequest) Descriptor() ([]byte, []int)

func (*GetServerRequest) ProtoMessage

func (*GetServerRequest) ProtoMessage()

func (*GetServerRequest) Reset

func (m *GetServerRequest) Reset()

func (*GetServerRequest) String

func (m *GetServerRequest) String() string

type GetServerResponse

type GetServerResponse struct {
	Server *Server `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
}

func (*GetServerResponse) Descriptor

func (*GetServerResponse) Descriptor() ([]byte, []int)

func (*GetServerResponse) GetServer

func (m *GetServerResponse) GetServer() *Server

func (*GetServerResponse) ProtoMessage

func (*GetServerResponse) ProtoMessage()

func (*GetServerResponse) Reset

func (m *GetServerResponse) Reset()

func (*GetServerResponse) String

func (m *GetServerResponse) String() string

type GoldpApiClient

type GoldpApiClient interface {
	StartServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error)
	StopServer(ctx context.Context, in *StopServerRequest, opts ...grpc.CallOption) (*StopServerResponse, error)
	GetServer(ctx context.Context, in *GetServerRequest, opts ...grpc.CallOption) (*GetServerResponse, error)
	AddInterface(ctx context.Context, in *AddInterfaceRequest, opts ...grpc.CallOption) (*AddInterfaceResponse, error)
	DeleteInterface(ctx context.Context, in *DeleteInterfaceRequest, opts ...grpc.CallOption) (*DeleteInterfaceResponse, error)
	ListInterface(ctx context.Context, in *ListInterfaceRequest, opts ...grpc.CallOption) (*ListInterfaceResponse, error)
	ListSession(ctx context.Context, in *ListSessionRequest, opts ...grpc.CallOption) (*ListSessionResponse, error)
	AddInterfaceAddress(ctx context.Context, in *AddInterfaceAddressRequest, opts ...grpc.CallOption) (*AddInterfaceAddressResponse, error)
	DeleteInterfaceAddress(ctx context.Context, in *DeleteInterfaceAddressRequest, opts ...grpc.CallOption) (*DeleteInterfaceAddressResponse, error)
	AddLocalLabelMapping(ctx context.Context, in *AddLocalLabelMappingRequest, opts ...grpc.CallOption) (*AddLocalLabelMappingResponse, error)
	DeleteLocalLabelMapping(ctx context.Context, in *DeleteLocalLabelMappingRequest, opts ...grpc.CallOption) (*DeleteLocalLabelMappingResponse, error)
	GetLabelMapping(ctx context.Context, in *GetLabelMappingRequest, opts ...grpc.CallOption) (*GetLabelMappingResponse, error)
	ListLabelMapping(ctx context.Context, in *ListLabelMappingRequest, opts ...grpc.CallOption) (*ListLabelMappingResponse, error)
	MonitorSession(ctx context.Context, in *MonitorSessionRequest, opts ...grpc.CallOption) (GoldpApi_MonitorSessionClient, error)
}

func NewGoldpApiClient

func NewGoldpApiClient(cc *grpc.ClientConn) GoldpApiClient

type GoldpApi_MonitorSessionClient

type GoldpApi_MonitorSessionClient interface {
	Recv() (*MonitorSessionResponse, error)
	grpc.ClientStream
}

type GoldpApi_MonitorSessionServer

type GoldpApi_MonitorSessionServer interface {
	Send(*MonitorSessionResponse) error
	grpc.ServerStream
}

type Interface

type Interface struct {
	Name      string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Addresses []string `protobuf:"bytes,2,rep,name=addresses" json:"addresses,omitempty"`
}

func (*Interface) Descriptor

func (*Interface) Descriptor() ([]byte, []int)

func (*Interface) FromConfig

func (m *Interface) FromConfig(c *config.Interface)

func (*Interface) GetAddresses

func (m *Interface) GetAddresses() []string

func (*Interface) GetName

func (m *Interface) GetName() string

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) Reset

func (m *Interface) Reset()

func (*Interface) String

func (m *Interface) String() string

func (*Interface) ToConfig

func (m *Interface) ToConfig() config.Interface

type LabelAdvMode

type LabelAdvMode int32
const (
	LabelAdvMode_DOD LabelAdvMode = 0
	LabelAdvMode_DU  LabelAdvMode = 1
)

func (LabelAdvMode) EnumDescriptor

func (LabelAdvMode) EnumDescriptor() ([]byte, []int)

func (LabelAdvMode) String

func (x LabelAdvMode) String() string

type ListInterfaceRequest

type ListInterfaceRequest struct {
}

func (*ListInterfaceRequest) Descriptor

func (*ListInterfaceRequest) Descriptor() ([]byte, []int)

func (*ListInterfaceRequest) ProtoMessage

func (*ListInterfaceRequest) ProtoMessage()

func (*ListInterfaceRequest) Reset

func (m *ListInterfaceRequest) Reset()

func (*ListInterfaceRequest) String

func (m *ListInterfaceRequest) String() string

type ListInterfaceResponse

type ListInterfaceResponse struct {
	Interfaces []*Interface `protobuf:"bytes,1,rep,name=interfaces" json:"interfaces,omitempty"`
}

func (*ListInterfaceResponse) Descriptor

func (*ListInterfaceResponse) Descriptor() ([]byte, []int)

func (*ListInterfaceResponse) GetInterfaces

func (m *ListInterfaceResponse) GetInterfaces() []*Interface

func (*ListInterfaceResponse) ProtoMessage

func (*ListInterfaceResponse) ProtoMessage()

func (*ListInterfaceResponse) Reset

func (m *ListInterfaceResponse) Reset()

func (*ListInterfaceResponse) String

func (m *ListInterfaceResponse) String() string

type ListLabelMappingRequest

type ListLabelMappingRequest struct {
}

func (*ListLabelMappingRequest) Descriptor

func (*ListLabelMappingRequest) Descriptor() ([]byte, []int)

func (*ListLabelMappingRequest) ProtoMessage

func (*ListLabelMappingRequest) ProtoMessage()

func (*ListLabelMappingRequest) Reset

func (m *ListLabelMappingRequest) Reset()

func (*ListLabelMappingRequest) String

func (m *ListLabelMappingRequest) String() string

type ListLabelMappingResponse

type ListLabelMappingResponse struct {
	Mapping []*Mapping `protobuf:"bytes,1,rep,name=mapping" json:"mapping,omitempty"`
}

func (*ListLabelMappingResponse) Descriptor

func (*ListLabelMappingResponse) Descriptor() ([]byte, []int)

func (*ListLabelMappingResponse) GetMapping

func (m *ListLabelMappingResponse) GetMapping() []*Mapping

func (*ListLabelMappingResponse) ProtoMessage

func (*ListLabelMappingResponse) ProtoMessage()

func (*ListLabelMappingResponse) Reset

func (m *ListLabelMappingResponse) Reset()

func (*ListLabelMappingResponse) String

func (m *ListLabelMappingResponse) String() string

type ListSessionRequest

type ListSessionRequest struct {
}

func (*ListSessionRequest) Descriptor

func (*ListSessionRequest) Descriptor() ([]byte, []int)

func (*ListSessionRequest) ProtoMessage

func (*ListSessionRequest) ProtoMessage()

func (*ListSessionRequest) Reset

func (m *ListSessionRequest) Reset()

func (*ListSessionRequest) String

func (m *ListSessionRequest) String() string

type ListSessionResponse

type ListSessionResponse struct {
	Sessions []*Session `protobuf:"bytes,1,rep,name=sessions" json:"sessions,omitempty"`
}

func (*ListSessionResponse) Descriptor

func (*ListSessionResponse) Descriptor() ([]byte, []int)

func (*ListSessionResponse) GetSessions

func (m *ListSessionResponse) GetSessions() []*Session

func (*ListSessionResponse) ProtoMessage

func (*ListSessionResponse) ProtoMessage()

func (*ListSessionResponse) Reset

func (m *ListSessionResponse) Reset()

func (*ListSessionResponse) String

func (m *ListSessionResponse) String() string

type Mapping

type Mapping struct {
	Prefix string            `protobuf:"bytes,1,opt,name=prefix" json:"prefix,omitempty"`
	Local  uint32            `protobuf:"varint,2,opt,name=local" json:"local,omitempty"`
	Remote map[string]uint32 `` /* 133-byte string literal not displayed */
}

func (*Mapping) Descriptor

func (*Mapping) Descriptor() ([]byte, []int)

func (*Mapping) FromConfig

func (m *Mapping) FromConfig(c *config.Mapping)

func (*Mapping) GetLocal

func (m *Mapping) GetLocal() uint32

func (*Mapping) GetPrefix

func (m *Mapping) GetPrefix() string

func (*Mapping) GetRemote

func (m *Mapping) GetRemote() map[string]uint32

func (*Mapping) ProtoMessage

func (*Mapping) ProtoMessage()

func (*Mapping) Reset

func (m *Mapping) Reset()

func (*Mapping) String

func (m *Mapping) String() string

func (*Mapping) ToConfig

func (m *Mapping) ToConfig() config.Mapping

type MonitorSessionRequest

type MonitorSessionRequest struct {
}

func (*MonitorSessionRequest) Descriptor

func (*MonitorSessionRequest) Descriptor() ([]byte, []int)

func (*MonitorSessionRequest) ProtoMessage

func (*MonitorSessionRequest) ProtoMessage()

func (*MonitorSessionRequest) Reset

func (m *MonitorSessionRequest) Reset()

func (*MonitorSessionRequest) String

func (m *MonitorSessionRequest) String() string

type MonitorSessionResponse

type MonitorSessionResponse struct {
	Type    MonitorSessionResponse_Type `protobuf:"varint,1,opt,name=type,enum=goldpapi.MonitorSessionResponse_Type" json:"type,omitempty"`
	Session *Session                    `protobuf:"bytes,2,opt,name=session" json:"session,omitempty"`
}

func (*MonitorSessionResponse) Descriptor

func (*MonitorSessionResponse) Descriptor() ([]byte, []int)

func (*MonitorSessionResponse) GetSession

func (m *MonitorSessionResponse) GetSession() *Session

func (*MonitorSessionResponse) GetType

func (*MonitorSessionResponse) ProtoMessage

func (*MonitorSessionResponse) ProtoMessage()

func (*MonitorSessionResponse) Reset

func (m *MonitorSessionResponse) Reset()

func (*MonitorSessionResponse) String

func (m *MonitorSessionResponse) String() string

type MonitorSessionResponse_Type

type MonitorSessionResponse_Type int32
const (
	MonitorSessionResponse_ADD    MonitorSessionResponse_Type = 0
	MonitorSessionResponse_DEL    MonitorSessionResponse_Type = 1
	MonitorSessionResponse_UPDATE MonitorSessionResponse_Type = 2
)

func (MonitorSessionResponse_Type) EnumDescriptor

func (MonitorSessionResponse_Type) EnumDescriptor() ([]byte, []int)

func (MonitorSessionResponse_Type) String

type Server

type Server struct {
	RouterId        string       `protobuf:"bytes,1,opt,name=router_id,json=routerId" json:"router_id,omitempty"`
	HoldTime        uint32       `protobuf:"varint,2,opt,name=hold_time,json=holdTime" json:"hold_time,omitempty"`
	LocalAddress    string       `protobuf:"bytes,3,opt,name=local_address,json=localAddress" json:"local_address,omitempty"`
	HelloInterval   uint32       `protobuf:"varint,4,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"`
	KeepAliveTime   uint32       `protobuf:"varint,5,opt,name=keep_alive_time,json=keepAliveTime" json:"keep_alive_time,omitempty"`
	MaxPduLength    uint32       `protobuf:"varint,6,opt,name=max_pdu_length,json=maxPduLength" json:"max_pdu_length,omitempty"`
	LoopDetection   bool         `protobuf:"varint,7,opt,name=loop_detection,json=loopDetection" json:"loop_detection,omitempty"`
	PathVectorLimit uint32       `protobuf:"varint,8,opt,name=path_vector_limit,json=pathVectorLimit" json:"path_vector_limit,omitempty"`
	LabelAdvMode    LabelAdvMode `protobuf:"varint,9,opt,name=label_adv_mode,json=labelAdvMode,enum=goldpapi.LabelAdvMode" json:"label_adv_mode,omitempty"`
}

func (*Server) Descriptor

func (*Server) Descriptor() ([]byte, []int)

func (*Server) FromConfig

func (m *Server) FromConfig(c *config.Global)

func (*Server) GetHelloInterval

func (m *Server) GetHelloInterval() uint32

func (*Server) GetHoldTime

func (m *Server) GetHoldTime() uint32

func (*Server) GetKeepAliveTime

func (m *Server) GetKeepAliveTime() uint32

func (*Server) GetLabelAdvMode

func (m *Server) GetLabelAdvMode() LabelAdvMode

func (*Server) GetLocalAddress

func (m *Server) GetLocalAddress() string

func (*Server) GetLoopDetection

func (m *Server) GetLoopDetection() bool

func (*Server) GetMaxPduLength

func (m *Server) GetMaxPduLength() uint32

func (*Server) GetPathVectorLimit

func (m *Server) GetPathVectorLimit() uint32

func (*Server) GetRouterId

func (m *Server) GetRouterId() string

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) String

func (m *Server) String() string

func (*Server) ToConfig

func (m *Server) ToConfig() config.Global

type Session

type Session struct {
	LocalId         string       `protobuf:"bytes,1,opt,name=local_id,json=localId" json:"local_id,omitempty"`
	PeerId          string       `protobuf:"bytes,2,opt,name=peer_id,json=peerId" json:"peer_id,omitempty"`
	KeepAliveTime   uint32       `protobuf:"varint,3,opt,name=keep_alive_time,json=keepAliveTime" json:"keep_alive_time,omitempty"`
	MaxPduLength    uint32       `protobuf:"varint,4,opt,name=max_pdu_length,json=maxPduLength" json:"max_pdu_length,omitempty"`
	LoopDetection   bool         `protobuf:"varint,5,opt,name=loop_detection,json=loopDetection" json:"loop_detection,omitempty"`
	PathVectorLimit uint32       `protobuf:"varint,6,opt,name=path_vector_limit,json=pathVectorLimit" json:"path_vector_limit,omitempty"`
	LabelAdvMode    LabelAdvMode `protobuf:"varint,7,opt,name=label_adv_mode,json=labelAdvMode,enum=goldpapi.LabelAdvMode" json:"label_adv_mode,omitempty"`
	PrevFsmState    string       `protobuf:"bytes,8,opt,name=prev_fsm_state,json=prevFsmState" json:"prev_fsm_state,omitempty"`
	FsmState        string       `protobuf:"bytes,9,opt,name=fsm_state,json=fsmState" json:"fsm_state,omitempty"`
}

func (*Session) Descriptor

func (*Session) Descriptor() ([]byte, []int)

func (*Session) FromConfig

func (m *Session) FromConfig(c *config.Session)

func (*Session) GetFsmState

func (m *Session) GetFsmState() string

func (*Session) GetKeepAliveTime

func (m *Session) GetKeepAliveTime() uint32

func (*Session) GetLabelAdvMode

func (m *Session) GetLabelAdvMode() LabelAdvMode

func (*Session) GetLocalId

func (m *Session) GetLocalId() string

func (*Session) GetLoopDetection

func (m *Session) GetLoopDetection() bool

func (*Session) GetMaxPduLength

func (m *Session) GetMaxPduLength() uint32

func (*Session) GetPathVectorLimit

func (m *Session) GetPathVectorLimit() uint32

func (*Session) GetPeerId

func (m *Session) GetPeerId() string

func (*Session) GetPrevFsmState

func (m *Session) GetPrevFsmState() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

func (*Session) ToConfig

func (m *Session) ToConfig() config.Session

type StartServerRequest

type StartServerRequest struct {
	Server *Server `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
}

func (*StartServerRequest) Descriptor

func (*StartServerRequest) Descriptor() ([]byte, []int)

func (*StartServerRequest) GetServer

func (m *StartServerRequest) GetServer() *Server

func (*StartServerRequest) ProtoMessage

func (*StartServerRequest) ProtoMessage()

func (*StartServerRequest) Reset

func (m *StartServerRequest) Reset()

func (*StartServerRequest) String

func (m *StartServerRequest) String() string

type StartServerResponse

type StartServerResponse struct {
	Server *Server `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
}

func (*StartServerResponse) Descriptor

func (*StartServerResponse) Descriptor() ([]byte, []int)

func (*StartServerResponse) GetServer

func (m *StartServerResponse) GetServer() *Server

func (*StartServerResponse) ProtoMessage

func (*StartServerResponse) ProtoMessage()

func (*StartServerResponse) Reset

func (m *StartServerResponse) Reset()

func (*StartServerResponse) String

func (m *StartServerResponse) String() string

type StopServerRequest

type StopServerRequest struct {
}

func (*StopServerRequest) Descriptor

func (*StopServerRequest) Descriptor() ([]byte, []int)

func (*StopServerRequest) ProtoMessage

func (*StopServerRequest) ProtoMessage()

func (*StopServerRequest) Reset

func (m *StopServerRequest) Reset()

func (*StopServerRequest) String

func (m *StopServerRequest) String() string

type StopServerResponse

type StopServerResponse struct {
	Server *Server `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
}

func (*StopServerResponse) Descriptor

func (*StopServerResponse) Descriptor() ([]byte, []int)

func (*StopServerResponse) GetServer

func (m *StopServerResponse) GetServer() *Server

func (*StopServerResponse) ProtoMessage

func (*StopServerResponse) ProtoMessage()

func (*StopServerResponse) Reset

func (m *StopServerResponse) Reset()

func (*StopServerResponse) String

func (m *StopServerResponse) String() string

Jump to

Keyboard shortcuts

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