Documentation ¶
Index ¶
- Constants
- Variables
- func HandleCreateSuccessfully(t *testing.T)
- func HandleDailyReportSuccessfully(t *testing.T)
- func HandleDeleteSuccessfully(t *testing.T)
- func HandleGetStatusSuccessfully(t *testing.T)
- func HandleGetSuccessfully(t *testing.T)
- func HandleGetTaskSuccessfully(t *testing.T)
- func HandleListConfigsSuccessfully(t *testing.T)
- func HandleListLogsSuccessfully(t *testing.T)
- func HandleListStatusSuccessfully(t *testing.T)
- func HandleUpdateSuccessfully(t *testing.T)
- func HandleWeeklyReportSuccessfully(t *testing.T)
Constants ¶
View Source
const CreateOutput string = `` /* 159-byte string literal not displayed */
View Source
const CreateRequest string = `` /* 127-byte string literal not displayed */
View Source
const DeleteOutput string = `` /* 159-byte string literal not displayed */
View Source
const GetOutput string = `` /* 127-byte string literal not displayed */
View Source
const ListStatusOutput string = `` /* 198-byte string literal not displayed */
View Source
const UpdateOutput string = `` /* 159-byte string literal not displayed */
View Source
const UpdateRequest string = `` /* 127-byte string literal not displayed */
Variables ¶
View Source
var CreateResponse = antiddos.CreateResponse{
ErrorCode: "10000000",
ErrorDescription: "The task has been received and is being handled",
TaskId: "82463800-70fe-4cba-9a96-06175e246ab3",
}
View Source
var DailyReportOutput = `` /* 794-byte string literal not displayed */
View Source
var DailyReportResponse = []antiddos.Data{
{
PeriodStart: 1521650068727,
BpsIn: 0,
BpsAttack: 0,
TotalBps: 0,
PpsIn: 0,
PpsAttack: 0,
TotalPps: 0,
},
{
PeriodStart: 1521650368727,
BpsIn: 0,
BpsAttack: 0,
TotalBps: 0,
PpsIn: 0,
PpsAttack: 0,
TotalPps: 0,
},
{
PeriodStart: 1521650668727,
BpsIn: 1,
BpsAttack: 0,
TotalBps: 1,
PpsIn: 2,
PpsAttack: 0,
TotalPps: 2,
},
}
View Source
var DeleteResponse = antiddos.DeleteResponse{
ErrorCode: "10000000",
ErrorDescription: "The task has been received and is being handled",
TaskId: "f732e7f1-26b2-40f1-85e9-a8a4d3a43038",
}
View Source
var GetResponse = antiddos.GetResponse{ EnableL7: true, TrafficPosId: 1, HttpRequestPosId: 2, CleaningAccessPosId: 3, AppTypeId: 1, }
View Source
var GetStatusOutput = `{"status":"normal"}`
View Source
var GetStatusResponse = antiddos.GetStatusResponse{
Status: "normal",
}
View Source
var GetTaskOutput = `
{
"task_status": "running",
"task_msg": "ABC"
}
`
View Source
var GetTaskResponse = antiddos.GetTaskResponse{
TaskStatus: "running",
TaskMsg: "ABC",
}
View Source
var ListConfigsOutput = `` /* 2915-byte string literal not displayed */
View Source
var ListConfigsResponse = antiddos.ListConfigsResponse{ TrafficLimitedList: []struct { TrafficPosId int `json:"traffic_pos_id,"` TrafficPerSecond int `json:"traffic_per_second,"` PacketPerSecond int `json:"packet_per_second,"` }{ { TrafficPosId: 1, TrafficPerSecond: 10, PacketPerSecond: 2000, }, { TrafficPosId: 2, TrafficPerSecond: 30, PacketPerSecond: 6000, }, { TrafficPosId: 3, TrafficPerSecond: 50, PacketPerSecond: 10000, }, { TrafficPosId: 4, TrafficPerSecond: 70, PacketPerSecond: 15000, }, { TrafficPosId: 5, TrafficPerSecond: 100, PacketPerSecond: 20000, }, { TrafficPosId: 6, TrafficPerSecond: 150, PacketPerSecond: 25000, }, { TrafficPosId: 7, TrafficPerSecond: 200, PacketPerSecond: 35000, }, { TrafficPosId: 8, TrafficPerSecond: 250, PacketPerSecond: 50000, }, { TrafficPosId: 9, TrafficPerSecond: 300, PacketPerSecond: 70000, }, }, HttpLimitedList: []struct { HttpRequestPosId int `json:"http_request_pos_id,"` HttpPacketPerSecond int `json:"http_packet_per_second,"` }{ { HttpRequestPosId: 1, HttpPacketPerSecond: 100, }, { HttpRequestPosId: 2, HttpPacketPerSecond: 150, }, { HttpRequestPosId: 3, HttpPacketPerSecond: 240, }, { HttpRequestPosId: 4, HttpPacketPerSecond: 350, }, { HttpRequestPosId: 5, HttpPacketPerSecond: 480, }, { HttpRequestPosId: 6, HttpPacketPerSecond: 550, }, { HttpRequestPosId: 7, HttpPacketPerSecond: 700, }, { HttpRequestPosId: 8, HttpPacketPerSecond: 850, }, { HttpRequestPosId: 9, HttpPacketPerSecond: 1000, }, { HttpRequestPosId: 10, HttpPacketPerSecond: 1500, }, { HttpRequestPosId: 11, HttpPacketPerSecond: 2000, }, { HttpRequestPosId: 12, HttpPacketPerSecond: 3000, }, { HttpRequestPosId: 13, HttpPacketPerSecond: 5000, }, { HttpRequestPosId: 14, HttpPacketPerSecond: 10000, }, { HttpRequestPosId: 15, HttpPacketPerSecond: 20000, }, }, ConnectionLimitedList: []struct { CleaningAccessPosId int `json:"cleaning_access_pos_id,"` NewConnectionLimited int `json:"new_connection_limited,"` TotalConnectionLimited int `json:"total_connection_limited,"` }{ { CleaningAccessPosId: 1, NewConnectionLimited: 10, TotalConnectionLimited: 30, }, { CleaningAccessPosId: 2, NewConnectionLimited: 20, TotalConnectionLimited: 100, }, { CleaningAccessPosId: 3, NewConnectionLimited: 30, TotalConnectionLimited: 200, }, { CleaningAccessPosId: 4, NewConnectionLimited: 40, TotalConnectionLimited: 250, }, { CleaningAccessPosId: 5, NewConnectionLimited: 50, TotalConnectionLimited: 300, }, { CleaningAccessPosId: 6, NewConnectionLimited: 60, TotalConnectionLimited: 500, }, { CleaningAccessPosId: 7, NewConnectionLimited: 70, TotalConnectionLimited: 600, }, { CleaningAccessPosId: 8, NewConnectionLimited: 80, TotalConnectionLimited: 700, }, }, }
View Source
var ListLogsOutput = `` /* 322-byte string literal not displayed */
View Source
var ListLogsResponse = []antiddos.Logs{
{
StartTime: 1473217200000,
EndTime: 1473242400000,
Status: 1,
TriggerBps: 51106,
TriggerPps: 2600,
TriggerHttpPps: 3589,
},
}
View Source
var ListStatusResponse = []antiddos.DdosStatus{
{
FloatingIpId: "4d60bba4-0791-4e82-8262-9bdffaeb1d14",
FloatingIpAddress: "49.4.4.36",
NetworkType: "EIP",
Status: "notConfig",
},
}
View Source
var UpdateResponse = antiddos.UpdateResponse{
ErrorCode: "10000000",
ErrorDescription: "The task has been received and is being handled",
TaskId: "82463800-70fe-4cba-9a96-06175e246ab3",
}
View Source
var WeeklyReportOutput = `` /* 1729-byte string literal not displayed */
View Source
var WeeklyReportResponse = antiddos.WeeklyReportResponse{ DdosInterceptTimes: 0, Weekdata: []antiddos.WeekData{ { DdosInterceptTimes: 0, DdosBlackholeTimes: 0, MaxAttackBps: 0, MaxAttackConns: 0, PeriodStartDate: responsePeriodTime, }, { DdosInterceptTimes: 0, DdosBlackholeTimes: 0, MaxAttackBps: 0, MaxAttackConns: 0, PeriodStartDate: responsePeriodTime, }, { DdosInterceptTimes: 0, DdosBlackholeTimes: 0, MaxAttackBps: 0, MaxAttackConns: 0, PeriodStartDate: responsePeriodTime, }, { DdosInterceptTimes: 0, DdosBlackholeTimes: 0, MaxAttackBps: 0, MaxAttackConns: 0, PeriodStartDate: responsePeriodTime, }, { DdosInterceptTimes: 0, DdosBlackholeTimes: 0, MaxAttackBps: 0, MaxAttackConns: 0, PeriodStartDate: responsePeriodTime, }, { DdosInterceptTimes: 0, DdosBlackholeTimes: 0, MaxAttackBps: 0, MaxAttackConns: 0, PeriodStartDate: responsePeriodTime, }, { DdosInterceptTimes: 0, DdosBlackholeTimes: 0, MaxAttackBps: 0, MaxAttackConns: 0, PeriodStartDate: responsePeriodTime, }, }, Top10: []struct { FloatingIpAddress string `json:"floating_ip_address,"` Times int `json:"times,"` }{}, }
Functions ¶
func HandleGetSuccessfully ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.