waf

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* GoStack API Client * * Copyright 2021 Christopher O'Connell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountableStatistic

type CountableStatistic interface {
	GetCount() (int64, error)
	MustGetCount() int
}

type RequestDetails

type RequestDetails struct {
	Id              string `json:"id"`
	Path            string `json:"path"`
	ClientIPString  string `json:"clientIp"`
	Method          string `json:"method"`
	StatusCode      string `json:"statusCode"`
	RuleName        string `json:"ruleName"`
	CountryCode     string `json:"country"`
	Action          string `json:"action"`
	Result          string `json:"result"`
	RuleID          string `json:"ruleId"`
	UserAgent       string `json:"userAgent"`
	UserAgentClient string `json:"userAgentClient"`
	Organization    string `json:"organization"`
	RequestTime     string `json:"requestTime"`
	ReferenceID     string `json:"referenceId"`
}

type RequestStatistics

type RequestStatistics struct {
	Total   RequestStatisticsData `json:"count"`
	Blocked RequestStatisticsData `json:"blocked"`
}

type RequestStatisticsAction

type RequestStatisticsAction struct {
	Action string `json:"action"`
	Count  string `json:"count"`
}

func (RequestStatisticsAction) GetCount

func (r RequestStatisticsAction) GetCount() (int64, error)

func (RequestStatisticsAction) MustGetCount

func (r RequestStatisticsAction) MustGetCount() int

type RequestStatisticsCountry

type RequestStatisticsCountry struct {
	Country     string `json:"country"`
	CountryCode string `json:"countryCode"`
	Count       string `json:"count"`
}

func (RequestStatisticsCountry) GetCount

func (r RequestStatisticsCountry) GetCount() (int64, error)

func (RequestStatisticsCountry) MustGetCount

func (r RequestStatisticsCountry) MustGetCount() int

type RequestStatisticsData

type RequestStatisticsData struct {
	Rules         []RequestStatisticsRule         `json:"rules"`
	Countries     []RequestStatisticsCountry      `json:"countries"`
	Organizations []RequestStatisticsOrganization `json:"organizations"`
	Actions       []RequestStatisticsAction       `json:"actions"`
}

type RequestStatisticsOrganization

type RequestStatisticsOrganization struct {
	Organization string `json:"organization"`
	Count        string `json:"count"`
}

func (RequestStatisticsOrganization) GetCount

func (r RequestStatisticsOrganization) GetCount() (int64, error)

func (RequestStatisticsOrganization) MustGetCount

func (r RequestStatisticsOrganization) MustGetCount() int

type RequestStatisticsRule

type RequestStatisticsRule struct {
	RuleName string `json:"ruleName"`
	Count    string `json:"count"`
}

func (RequestStatisticsRule) GetCount

func (r RequestStatisticsRule) GetCount() (int64, error)

func (RequestStatisticsRule) MustGetCount

func (r RequestStatisticsRule) MustGetCount() int

Jump to

Keyboard shortcuts

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