random_tools

package
v0.0.0-...-a59c08c Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomNumberGeneration

type RandomNumberGeneration struct {
	Min       float64   `json:"min"`
	Max       float64   `json:"max"`
	Generated float64   `json:"generated"`
	Time      time.Time `json:"timestamp"`
}

type RandomNumberTool

type RandomNumberTool struct {
	toolkit.Tool
	// contains filtered or unexported fields
}

func NewRandomNumberTool

func NewRandomNumberTool() *RandomNumberTool

func (*RandomNumberTool) Execute

func (t *RandomNumberTool) Execute(ctx context.Context, params json.RawMessage) (json.RawMessage, error)

func (*RandomNumberTool) GetDescription

func (t *RandomNumberTool) GetDescription() string

func (*RandomNumberTool) GetGeneration

func (t *RandomNumberTool) GetGeneration(id int) (RandomNumberGeneration, error)

func (*RandomNumberTool) GetHistory

func (t *RandomNumberTool) GetHistory() []RandomNumberGeneration

func (*RandomNumberTool) GetName

func (t *RandomNumberTool) GetName() string

func (*RandomNumberTool) GetSchema

func (t *RandomNumberTool) GetSchema() toolkit.Schema

type RandomStringGeneration

type RandomStringGeneration struct {
	Length  int       `json:"length"`
	Charset string    `json:"charset"`
	Result  string    `json:"result"`
	Time    time.Time `json:"timestamp"`
}

type RandomStringTool

type RandomStringTool struct {
	toolkit.Tool
	// contains filtered or unexported fields
}

func NewRandomStringTool

func NewRandomStringTool() *RandomStringTool

func (*RandomStringTool) ClearHistory

func (t *RandomStringTool) ClearHistory()

func (*RandomStringTool) Execute

func (t *RandomStringTool) Execute(params json.RawMessage) (interface{}, error)

func (*RandomStringTool) GetHistory

func (t *RandomStringTool) GetHistory() interface{}

func (*RandomStringTool) GetSchema

func (t *RandomStringTool) GetSchema() toolkit.Schema

Jump to

Keyboard shortcuts

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