world

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type World

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

func New

func New(c WorldConfig) World

func (*World) Start

func (w *World) Start()

type WorldConfig

type WorldConfig struct {
	// Message that is going to be logged on the console
	GreatingMessage string `json:"greatingMessage" jsonschema:"example=hello world,default=hello"`
	// Frequency in which the message is going to be logged
	GreatingFrequency time.Duration `json:"greatingFrequency" jsonschema:"example=1h,default=10s"`
}

WorldConfig bla bla bla

Jump to

Keyboard shortcuts

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