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 ¶
- Variables
- func RegisterGoldpApiServer(s *grpc.Server, srv GoldpApiServer)
- type AddInterfaceAddressRequest
- type AddInterfaceAddressResponse
- type AddInterfaceRequest
- type AddInterfaceResponse
- type AddLocalLabelMappingRequest
- func (*AddLocalLabelMappingRequest) Descriptor() ([]byte, []int)
- func (m *AddLocalLabelMappingRequest) GetFEC() []string
- func (m *AddLocalLabelMappingRequest) GetLabel() uint32
- func (*AddLocalLabelMappingRequest) ProtoMessage()
- func (m *AddLocalLabelMappingRequest) Reset()
- func (m *AddLocalLabelMappingRequest) String() string
- type AddLocalLabelMappingResponse
- type DeleteInterfaceAddressRequest
- type DeleteInterfaceAddressResponse
- type DeleteInterfaceRequest
- type DeleteInterfaceResponse
- type DeleteLocalLabelMappingRequest
- type DeleteLocalLabelMappingResponse
- type GRPCServer
- func (g *GRPCServer) AddInterface(_ context.Context, arg *AddInterfaceRequest) (*AddInterfaceResponse, error)
- func (g *GRPCServer) AddInterfaceAddress(_ context.Context, arg *AddInterfaceAddressRequest) (*AddInterfaceAddressResponse, error)
- func (g *GRPCServer) AddLocalLabelMapping(_ context.Context, arg *AddLocalLabelMappingRequest) (*AddLocalLabelMappingResponse, error)
- func (g *GRPCServer) DeleteInterface(_ context.Context, arg *DeleteInterfaceRequest) (*DeleteInterfaceResponse, error)
- func (g *GRPCServer) DeleteInterfaceAddress(_ context.Context, arg *DeleteInterfaceAddressRequest) (*DeleteInterfaceAddressResponse, error)
- func (g *GRPCServer) DeleteLocalLabelMapping(_ context.Context, arg *DeleteLocalLabelMappingRequest) (*DeleteLocalLabelMappingResponse, error)
- func (g *GRPCServer) GetLabelMapping(_ context.Context, arg *GetLabelMappingRequest) (*GetLabelMappingResponse, error)
- func (g *GRPCServer) GetServer(ctx context.Context, arg *GetServerRequest) (*GetServerResponse, error)
- func (g *GRPCServer) ListInterface(_ context.Context, _ *ListInterfaceRequest) (*ListInterfaceResponse, error)
- func (g *GRPCServer) ListLabelMapping(_ context.Context, _ *ListLabelMappingRequest) (*ListLabelMappingResponse, error)
- func (g *GRPCServer) ListSession(_ context.Context, _ *ListSessionRequest) (*ListSessionResponse, error)
- func (g *GRPCServer) MonitorSession(_ *MonitorSessionRequest, stream GoldpApi_MonitorSessionServer) error
- func (g *GRPCServer) Serve() error
- func (g *GRPCServer) StartServer(ctx context.Context, arg *StartServerRequest) (*StartServerResponse, error)
- func (g *GRPCServer) StopServer(ctx context.Context, arg *StopServerRequest) (*StopServerResponse, error)
- type GetLabelMappingRequest
- type GetLabelMappingResponse
- type GetServerRequest
- type GetServerResponse
- type GoldpApiClient
- type GoldpApiServer
- type GoldpApi_MonitorSessionClient
- type GoldpApi_MonitorSessionServer
- type Interface
- func (*Interface) Descriptor() ([]byte, []int)
- func (m *Interface) FromConfig(c *config.Interface)
- func (m *Interface) GetAddresses() []string
- func (m *Interface) GetName() string
- func (*Interface) ProtoMessage()
- func (m *Interface) Reset()
- func (m *Interface) String() string
- func (m *Interface) ToConfig() config.Interface
- type LabelAdvMode
- type ListInterfaceRequest
- type ListInterfaceResponse
- type ListLabelMappingRequest
- type ListLabelMappingResponse
- type ListSessionRequest
- type ListSessionResponse
- type Mapping
- func (*Mapping) Descriptor() ([]byte, []int)
- func (m *Mapping) FromConfig(c *config.Mapping)
- func (m *Mapping) GetLocal() uint32
- func (m *Mapping) GetPrefix() string
- func (m *Mapping) GetRemote() map[string]uint32
- func (*Mapping) ProtoMessage()
- func (m *Mapping) Reset()
- func (m *Mapping) String() string
- func (m *Mapping) ToConfig() config.Mapping
- type MonitorSessionRequest
- type MonitorSessionResponse
- func (*MonitorSessionResponse) Descriptor() ([]byte, []int)
- func (m *MonitorSessionResponse) GetSession() *Session
- func (m *MonitorSessionResponse) GetType() MonitorSessionResponse_Type
- func (*MonitorSessionResponse) ProtoMessage()
- func (m *MonitorSessionResponse) Reset()
- func (m *MonitorSessionResponse) String() string
- type MonitorSessionResponse_Type
- type Server
- func (*Server) Descriptor() ([]byte, []int)
- func (m *Server) FromConfig(c *config.Global)
- func (m *Server) GetHelloInterval() uint32
- func (m *Server) GetHoldTime() uint32
- func (m *Server) GetKeepAliveTime() uint32
- func (m *Server) GetLabelAdvMode() LabelAdvMode
- func (m *Server) GetLocalAddress() string
- func (m *Server) GetLoopDetection() bool
- func (m *Server) GetMaxPduLength() uint32
- func (m *Server) GetPathVectorLimit() uint32
- func (m *Server) GetRouterId() string
- func (*Server) ProtoMessage()
- func (m *Server) Reset()
- func (m *Server) String() string
- func (m *Server) ToConfig() config.Global
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (m *Session) FromConfig(c *config.Session)
- func (m *Session) GetFsmState() string
- func (m *Session) GetKeepAliveTime() uint32
- func (m *Session) GetLabelAdvMode() LabelAdvMode
- func (m *Session) GetLocalId() string
- func (m *Session) GetLoopDetection() bool
- func (m *Session) GetMaxPduLength() uint32
- func (m *Session) GetPathVectorLimit() uint32
- func (m *Session) GetPeerId() string
- func (m *Session) GetPrevFsmState() string
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) String() string
- func (m *Session) ToConfig() config.Session
- type StartServerRequest
- type StartServerResponse
- type StopServerRequest
- type StopServerResponse
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 ¶
func (m *AddLocalLabelMappingResponse) String() 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 ¶
func (m *DeleteInterfaceAddressRequest) String() 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 ¶
func (m *DeleteInterfaceAddressResponse) String() 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 ¶
func (m *DeleteLocalLabelMappingRequest) String() string
type DeleteLocalLabelMappingResponse ¶
type DeleteLocalLabelMappingResponse struct { }
func (*DeleteLocalLabelMappingResponse) Descriptor ¶
func (*DeleteLocalLabelMappingResponse) Descriptor() ([]byte, []int)
func (*DeleteLocalLabelMappingResponse) ProtoMessage ¶
func (*DeleteLocalLabelMappingResponse) ProtoMessage()
func (*DeleteLocalLabelMappingResponse) Reset ¶
func (m *DeleteLocalLabelMappingResponse) Reset()
func (*DeleteLocalLabelMappingResponse) String ¶
func (m *DeleteLocalLabelMappingResponse) String() 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 (g *GRPCServer) AddInterface(_ context.Context, arg *AddInterfaceRequest) (*AddInterfaceResponse, error)
func (*GRPCServer) AddInterfaceAddress ¶
func (g *GRPCServer) AddInterfaceAddress(_ context.Context, arg *AddInterfaceAddressRequest) (*AddInterfaceAddressResponse, error)
func (*GRPCServer) AddLocalLabelMapping ¶
func (g *GRPCServer) AddLocalLabelMapping(_ context.Context, arg *AddLocalLabelMappingRequest) (*AddLocalLabelMappingResponse, error)
func (*GRPCServer) DeleteInterface ¶
func (g *GRPCServer) DeleteInterface(_ context.Context, arg *DeleteInterfaceRequest) (*DeleteInterfaceResponse, error)
func (*GRPCServer) DeleteInterfaceAddress ¶
func (g *GRPCServer) DeleteInterfaceAddress(_ context.Context, arg *DeleteInterfaceAddressRequest) (*DeleteInterfaceAddressResponse, error)
func (*GRPCServer) DeleteLocalLabelMapping ¶
func (g *GRPCServer) DeleteLocalLabelMapping(_ context.Context, arg *DeleteLocalLabelMappingRequest) (*DeleteLocalLabelMappingResponse, error)
func (*GRPCServer) GetLabelMapping ¶
func (g *GRPCServer) GetLabelMapping(_ context.Context, arg *GetLabelMappingRequest) (*GetLabelMappingResponse, error)
func (*GRPCServer) GetServer ¶
func (g *GRPCServer) GetServer(ctx context.Context, arg *GetServerRequest) (*GetServerResponse, error)
func (*GRPCServer) ListInterface ¶
func (g *GRPCServer) ListInterface(_ context.Context, _ *ListInterfaceRequest) (*ListInterfaceResponse, error)
func (*GRPCServer) ListLabelMapping ¶
func (g *GRPCServer) ListLabelMapping(_ context.Context, _ *ListLabelMappingRequest) (*ListLabelMappingResponse, error)
func (*GRPCServer) ListSession ¶
func (g *GRPCServer) ListSession(_ context.Context, _ *ListSessionRequest) (*ListSessionResponse, error)
func (*GRPCServer) MonitorSession ¶
func (g *GRPCServer) MonitorSession(_ *MonitorSessionRequest, stream GoldpApi_MonitorSessionServer) error
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 GoldpApiServer ¶
type GoldpApiServer interface { StartServer(context.Context, *StartServerRequest) (*StartServerResponse, error) StopServer(context.Context, *StopServerRequest) (*StopServerResponse, error) GetServer(context.Context, *GetServerRequest) (*GetServerResponse, error) AddInterface(context.Context, *AddInterfaceRequest) (*AddInterfaceResponse, error) DeleteInterface(context.Context, *DeleteInterfaceRequest) (*DeleteInterfaceResponse, error) ListInterface(context.Context, *ListInterfaceRequest) (*ListInterfaceResponse, error) ListSession(context.Context, *ListSessionRequest) (*ListSessionResponse, error) AddInterfaceAddress(context.Context, *AddInterfaceAddressRequest) (*AddInterfaceAddressResponse, error) DeleteInterfaceAddress(context.Context, *DeleteInterfaceAddressRequest) (*DeleteInterfaceAddressResponse, error) AddLocalLabelMapping(context.Context, *AddLocalLabelMappingRequest) (*AddLocalLabelMappingResponse, error) DeleteLocalLabelMapping(context.Context, *DeleteLocalLabelMappingRequest) (*DeleteLocalLabelMappingResponse, error) GetLabelMapping(context.Context, *GetLabelMappingRequest) (*GetLabelMappingResponse, error) ListLabelMapping(context.Context, *ListLabelMappingRequest) (*ListLabelMappingResponse, error) MonitorSession(*MonitorSessionRequest, GoldpApi_MonitorSessionServer) error }
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) FromConfig ¶
func (*Interface) GetAddresses ¶
func (*Interface) ProtoMessage ¶
func (*Interface) ProtoMessage()
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) FromConfig ¶
func (*Mapping) ProtoMessage ¶
func (*Mapping) ProtoMessage()
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 (m *MonitorSessionResponse) GetType() MonitorSessionResponse_Type
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 ¶
func (x MonitorSessionResponse_Type) String() 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) FromConfig ¶
func (*Server) GetHelloInterval ¶
func (*Server) GetHoldTime ¶
func (*Server) GetKeepAliveTime ¶
func (*Server) GetLabelAdvMode ¶
func (m *Server) GetLabelAdvMode() LabelAdvMode
func (*Server) GetLocalAddress ¶
func (*Server) GetLoopDetection ¶
func (*Server) GetMaxPduLength ¶
func (*Server) GetPathVectorLimit ¶
func (*Server) GetRouterId ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
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) FromConfig ¶
func (*Session) GetFsmState ¶
func (*Session) GetKeepAliveTime ¶
func (*Session) GetLabelAdvMode ¶
func (m *Session) GetLabelAdvMode() LabelAdvMode
func (*Session) GetLocalId ¶
func (*Session) GetLoopDetection ¶
func (*Session) GetMaxPduLength ¶
func (*Session) GetPathVectorLimit ¶
func (*Session) GetPrevFsmState ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.