mygizmo

package
v0.49.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mygizmo implements an acme:component:gizmo, a demonstration component that simply shows the various methods available in grpc.

Index

Constants

This section is empty.

Variables

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

Model is the full model definition.

Functions

func NewMyGizmo

func NewMyGizmo(
	deps resource.Dependencies,
	conf resource.Config,
	logger logging.Logger,
) (gizmoapi.Gizmo, error)

NewMyGizmo returns a new mygizmo.

Types

type Config added in v0.10.0

type Config struct {
	Arg1 string `json:"arg1"`
}

Config is the gizmo model's config.

func (*Config) Validate added in v0.10.0

func (cfg *Config) Validate(path string) ([]string, error)

Validate ensures that `Arg1` is a non-empty string. Validation error will stop the associated resource from building.

Jump to

Keyboard shortcuts

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