Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
pb/service.proto pb/data.proto
It has these top-level messages:
LinkReqResp StatsReqResp Destination Link XLStats
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterNpsWssServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNpsWssServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNpsWssServiceServer(s *grpc.Server, srv NpsWssServiceServer)
- type Destination
- type Link
- type LinkReqResp
- func (*LinkReqResp) Descriptor() ([]byte, []int)
- func (m *LinkReqResp) GetId() string
- func (m *LinkReqResp) GetLink() *Link
- func (m *LinkReqResp) GetName() string
- func (m *LinkReqResp) GetNamespace() string
- func (m *LinkReqResp) GetStateCode() int32
- func (m *LinkReqResp) GetStateMessage() string
- func (*LinkReqResp) ProtoMessage()
- func (m *LinkReqResp) Reset()
- func (m *LinkReqResp) String() string
- type Link_Stage
- type NpsWssServiceClient
- type NpsWssServiceServer
- type StatsReqResp
- type XLStats
- type XLStats_Stat
- func (*XLStats_Stat) Descriptor() ([]byte, []int)
- func (m *XLStats_Stat) GetAttackName() string
- func (m *XLStats_Stat) GetAttackType() string
- func (m *XLStats_Stat) GetData() string
- func (m *XLStats_Stat) GetDataSize() int32
- func (m *XLStats_Stat) GetFrom() string
- func (m *XLStats_Stat) GetPort() int32
- func (m *XLStats_Stat) GetProtocol() string
- func (m *XLStats_Stat) GetTime() int32
- func (m *XLStats_Stat) GetTo() string
- func (*XLStats_Stat) ProtoMessage()
- func (m *XLStats_Stat) Reset()
- func (m *XLStats_Stat) String() string
- type XLStats_Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNpsWssServiceHandler ¶
func RegisterNpsWssServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNpsWssServiceHandler registers the http handlers for service NpsWssService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNpsWssServiceHandlerFromEndpoint ¶
func RegisterNpsWssServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNpsWssServiceHandlerFromEndpoint is same as RegisterNpsWssServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNpsWssServiceServer ¶
func RegisterNpsWssServiceServer(s *grpc.Server, srv NpsWssServiceServer)
Types ¶
type Destination ¶
type Destination struct { IpV4 string `protobuf:"bytes,1,opt,name=ip_v4,json=ipV4,proto3" json:"ip_v4,omitempty"` Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` }
func (*Destination) Descriptor ¶
func (*Destination) Descriptor() ([]byte, []int)
func (*Destination) GetIpV4 ¶
func (m *Destination) GetIpV4() string
func (*Destination) GetPort ¶
func (m *Destination) GetPort() int32
func (*Destination) ProtoMessage ¶
func (*Destination) ProtoMessage()
func (*Destination) Reset ¶
func (m *Destination) Reset()
func (*Destination) String ¶
func (m *Destination) String() string
type Link ¶
type Link struct {
Stages map[string]*Link_Stage `` /* 139-byte string literal not displayed */
}
func (*Link) Descriptor ¶
func (*Link) GetStages ¶
func (m *Link) GetStages() map[string]*Link_Stage
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
type LinkReqResp ¶
type LinkReqResp struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` Link *Link `protobuf:"bytes,4,opt,name=link" json:"link,omitempty"` StateCode int32 `protobuf:"varint,5,opt,name=state_code,json=stateCode,proto3" json:"state_code,omitempty"` StateMessage string `protobuf:"bytes,6,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` }
func (*LinkReqResp) Descriptor ¶
func (*LinkReqResp) Descriptor() ([]byte, []int)
func (*LinkReqResp) GetId ¶
func (m *LinkReqResp) GetId() string
func (*LinkReqResp) GetLink ¶
func (m *LinkReqResp) GetLink() *Link
func (*LinkReqResp) GetName ¶
func (m *LinkReqResp) GetName() string
func (*LinkReqResp) GetNamespace ¶
func (m *LinkReqResp) GetNamespace() string
func (*LinkReqResp) GetStateCode ¶
func (m *LinkReqResp) GetStateCode() int32
func (*LinkReqResp) GetStateMessage ¶
func (m *LinkReqResp) GetStateMessage() string
func (*LinkReqResp) ProtoMessage ¶
func (*LinkReqResp) ProtoMessage()
func (*LinkReqResp) Reset ¶
func (m *LinkReqResp) Reset()
func (*LinkReqResp) String ¶
func (m *LinkReqResp) String() string
type Link_Stage ¶
type Link_Stage struct { Target *Destination `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` Sources []*Destination `protobuf:"bytes,2,rep,name=sources" json:"sources,omitempty"` }
func (*Link_Stage) Descriptor ¶
func (*Link_Stage) Descriptor() ([]byte, []int)
func (*Link_Stage) GetSources ¶
func (m *Link_Stage) GetSources() []*Destination
func (*Link_Stage) GetTarget ¶
func (m *Link_Stage) GetTarget() *Destination
func (*Link_Stage) ProtoMessage ¶
func (*Link_Stage) ProtoMessage()
func (*Link_Stage) Reset ¶
func (m *Link_Stage) Reset()
func (*Link_Stage) String ¶
func (m *Link_Stage) String() string
type NpsWssServiceClient ¶
type NpsWssServiceClient interface { LinkStatsCreation(ctx context.Context, in *LinkReqResp, opts ...grpc.CallOption) (*LinkReqResp, error) NetFlowStats(ctx context.Context, in *StatsReqResp, opts ...grpc.CallOption) (*StatsReqResp, error) }
func NewNpsWssServiceClient ¶
func NewNpsWssServiceClient(cc *grpc.ClientConn) NpsWssServiceClient
type NpsWssServiceServer ¶
type NpsWssServiceServer interface { LinkStatsCreation(context.Context, *LinkReqResp) (*LinkReqResp, error) NetFlowStats(context.Context, *StatsReqResp) (*StatsReqResp, error) }
type StatsReqResp ¶
type StatsReqResp struct { Xlstats *XLStats `protobuf:"bytes,1,opt,name=xlstats" json:"xlstats,omitempty"` StateCode int32 `protobuf:"varint,2,opt,name=state_code,json=stateCode,proto3" json:"state_code,omitempty"` StateMessage string `protobuf:"bytes,3,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` }
func (*StatsReqResp) Descriptor ¶
func (*StatsReqResp) Descriptor() ([]byte, []int)
func (*StatsReqResp) GetStateCode ¶
func (m *StatsReqResp) GetStateCode() int32
func (*StatsReqResp) GetStateMessage ¶
func (m *StatsReqResp) GetStateMessage() string
func (*StatsReqResp) GetXlstats ¶
func (m *StatsReqResp) GetXlstats() *XLStats
func (*StatsReqResp) ProtoMessage ¶
func (*StatsReqResp) ProtoMessage()
func (*StatsReqResp) Reset ¶
func (m *StatsReqResp) Reset()
func (*StatsReqResp) String ¶
func (m *StatsReqResp) String() string
type XLStats ¶
type XLStats struct { Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` Attackdata *XLStats_Stats `protobuf:"bytes,2,opt,name=attackdata" json:"attackdata,omitempty"` }
func (*XLStats) Descriptor ¶
func (*XLStats) GetAttackdata ¶
func (m *XLStats) GetAttackdata() *XLStats_Stats
func (*XLStats) GetCommand ¶
func (*XLStats) ProtoMessage ¶
func (*XLStats) ProtoMessage()
type XLStats_Stat ¶
type XLStats_Stat struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` AttackType string `protobuf:"bytes,3,opt,name=attack_type,json=attackType,proto3" json:"attack_type,omitempty"` AttackName string `protobuf:"bytes,4,opt,name=attack_name,json=attackName,proto3" json:"attack_name,omitempty"` Time int32 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"` Data string `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` DataSize int32 `protobuf:"varint,7,opt,name=data_size,json=dataSize,proto3" json:"data_size,omitempty"` Port int32 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"` Protocol string `protobuf:"bytes,9,opt,name=protocol,proto3" json:"protocol,omitempty"` }
func (*XLStats_Stat) Descriptor ¶
func (*XLStats_Stat) Descriptor() ([]byte, []int)
func (*XLStats_Stat) GetAttackName ¶
func (m *XLStats_Stat) GetAttackName() string
func (*XLStats_Stat) GetAttackType ¶
func (m *XLStats_Stat) GetAttackType() string
func (*XLStats_Stat) GetData ¶
func (m *XLStats_Stat) GetData() string
func (*XLStats_Stat) GetDataSize ¶
func (m *XLStats_Stat) GetDataSize() int32
func (*XLStats_Stat) GetFrom ¶
func (m *XLStats_Stat) GetFrom() string
func (*XLStats_Stat) GetPort ¶
func (m *XLStats_Stat) GetPort() int32
func (*XLStats_Stat) GetProtocol ¶
func (m *XLStats_Stat) GetProtocol() string
func (*XLStats_Stat) GetTime ¶
func (m *XLStats_Stat) GetTime() int32
func (*XLStats_Stat) GetTo ¶
func (m *XLStats_Stat) GetTo() string
func (*XLStats_Stat) ProtoMessage ¶
func (*XLStats_Stat) ProtoMessage()
func (*XLStats_Stat) Reset ¶
func (m *XLStats_Stat) Reset()
func (*XLStats_Stat) String ¶
func (m *XLStats_Stat) String() string
type XLStats_Stats ¶
type XLStats_Stats struct {
List []*XLStats_Stat `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}
func (*XLStats_Stats) Descriptor ¶
func (*XLStats_Stats) Descriptor() ([]byte, []int)
func (*XLStats_Stats) GetList ¶
func (m *XLStats_Stats) GetList() []*XLStats_Stat
func (*XLStats_Stats) ProtoMessage ¶
func (*XLStats_Stats) ProtoMessage()
func (*XLStats_Stats) Reset ¶
func (m *XLStats_Stats) Reset()
func (*XLStats_Stats) String ¶
func (m *XLStats_Stats) String() string
Click to show internal directories.
Click to hide internal directories.