Documentation ¶
Overview ¶
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
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.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
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.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
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.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
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.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
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.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
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 ¶
- func AcceptAllOrigins(r *http.Request) bool
- func Data(t string, data interface{}) json.Marshaler
- func New(options ...func(*web) error) (*web, error)
- func WithConfig(c toml.Primitive, decoder TomlDecoder) func(*web) error
- func WithDataDir(dataDir string) func(*web) error
- func WithEventBus(bus *eventbus.EventBus) func(*web) error
- type HotCountry
- type Message
- type Metadata
- type SafeArray
- type TomlDecoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptAllOrigins ¶
func WithConfig ¶
func WithConfig(c toml.Primitive, decoder TomlDecoder) func(*web) error
func WithDataDir ¶
func WithEventBus ¶
Types ¶
type HotCountry ¶
type Message ¶
type Message struct { Type string `json:"type"` Data interface{} `json:"data"` }
func (Message) MarshalJSON ¶
type Metadata ¶
type Metadata struct { Start time.Time Version string `json:"version"` ReleaseTag string `json:"release_tag"` CommitID string `json:"commitid"` ShortCommitID string `json:"shortcommitid"` }
func (Metadata) MarshalJSON ¶
type SafeArray ¶
type SafeArray struct {
// contains filtered or unexported fields
}
SafeArray is a thread safe array implementation.
func NewLimitedSafeArray ¶
NewLimitedSafeArray returns a SafeArray with a max limit items.
func (*SafeArray) MarshalJSON ¶
MarshalJSON will marshall the array contents to JSON.