core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Messager

type Messager struct {
	Webhook string
}

func NewMessager

func NewMessager(webhook string) *Messager

NewMessager function creates and returns a new instance of the Messager struct.

type Options

type Options struct {
	Webhook string
	Delay   int
	Vdp     bool
}

func NewParser

func NewParser() *Options

NewParser function creates and returns a new instance of the Options struct.

func (*Options) Parse

func (o *Options) Parse()

Parse function parses command-line arguments, sets options, and displays a banner.

type System

type System struct {
	NotificationSystem *Messager
	Options            *Options
}

func New

func New(NotificationSystem *Messager, Option Options) *System

New function Creates a new system instance with the specified notification system and options.

func (*System) Contains

func (s *System) Contains(list []string, item string) bool

Contains function checks if an item exists in a list.

func (*System) Pull

func (s *System) Pull() []byte

Pull function pulls the content of the "hackerone_data.json" file from the specified URL and returns it as a byte array.

func (*System) Run

func (s *System) Run()

Run function Runs the system in a loop, periodically fetching data and sending notifications based on calculations.

Jump to

Keyboard shortcuts

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