webui

package
v0.0.0-...-e6a6799 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module holds data for this module and implements the shodan.Module interface

func (*Module) Attach

func (m *Module) Attach(session shodan.Shodan) error

Attach attaches this module to a Shodan session

func (*Module) GetIdentifier

func (_ *Module) GetIdentifier() string

GetIdentifier returns the identifier for this module

type ShodanAppInfo

type ShodanAppInfo struct {
	Name            string `json:"name"`
	Description     string `json:"des"`
	Icon            string `json:"icon"`
	ID              string `json:"id"`
	VersionMajor    string `json:"version_major"`
	VersionMinor    string `json:"version_minor"`
	VersionRevision string `json:"version_revision"`
	VersionGit      string `json:"version_git"`
	SingleGuildMode string `json:"single_guild_mode"`
}

ShodanAppInfo holds meta information requested by the UI on load.

func CurrentApplicationInfo

func CurrentApplicationInfo() (*ShodanAppInfo, error)

CurrentApplicationInfo gets the app information from Discord

type ShodanRole

type ShodanRole struct {
	ID    int
	Guild string
	Role  string
	Name  string
	Type  string
}

A ShodanRole represents a managed discord role

func DBGetAvailableRoles

func DBGetAvailableRoles(db *sql.DB, guild string) ([]*ShodanRole, error)

DBGetAvailableRoles returns the assigned roles for a guild

Jump to

Keyboard shortcuts

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