module_keepass

package
v0.0.0-...-b40d7d9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const CONFIRM_MESSAGE = `` /* 242-byte string literal not displayed */

Confirmation message

Variables

View Source
var TOKEN = os.Getenv("KEEPASS_TOKEN")
View Source
var URL = os.Getenv("KEEPASS_BASE_URL")

Keepass API configuration

Functions

func NewModule

func NewModule(bot *horus.Bot, enabled bool)

Create a new Module

Types

type Module

type Module struct {
	Enabled     bool // Whether or not the module is enabled
	Permissions byte // The permissions this module needs to be activated

	FunctionDefinitions map[string]openai.FunctionDefinition                    // Function definitions for an OpenAI model
	Functions           map[string]func(bot *horus.Bot, input *types.Input) any // Functions that can be called
	// contains filtered or unexported fields
}

Module stores this module's functions and capabilities in an easily exportable struct

func (*Module) Handler

func (m *Module) Handler(function string, input *types.Input) any

Handle a function call

func (*Module) Name

func (m *Module) Name() string

Return the name of the module

type Profile

type Profile struct {
	Path     string `json:"path"`
	Title    string `json:"title"`
	Username string `json:"username"`
	Password string `json:"password"`
	Url      string `json:"url"`
	Notes    string `json:"notes"`
}

Represents a keepass profile

Jump to

Keyboard shortcuts

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