mysum

package
v0.50.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mysum implements an acme:service:summation, a demo service which sums (or subtracts) a given list of numbers.

Index

Constants

This section is empty.

Variables

View Source
var Model = resource.NewModel("acme", "demo", "mysum")

Model is the full model definition.

Functions

This section is empty.

Types

type Config added in v0.10.0

type Config struct {
	Subtract bool `json:"subtract,omitempty"` // the omitempty defaults the bool to golang's default of false

	// Embed TriviallyValidateConfig to make config validation a no-op. We will not check if any attributes exist
	// or are set to anything in particular, and there will be no implicit dependencies.
	// Config structs used in resource registration must implement Validate.
	resource.TriviallyValidateConfig
}

Config is the sum model's config.

Jump to

Keyboard shortcuts

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