uml

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: GPL-3.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T Opt[V], V any](options *V, opts ...T)

func Flat added in v0.0.8

func Flat[T Opt[V], V any](opts ...T) T

func PluginForTarget added in v0.0.8

func PluginForTarget(target string) (string, error)

func Unmarshal

func Unmarshal(v string, b []byte, spec *Spec) error

Types

type Converter

type Converter interface {
	From(ctx context.Context, reader io.Reader) (*Spec, error)
}

type ConverterOption

type ConverterOption func(*ConverterOptions) error

func WithMimeType

func WithMimeType(t string) ConverterOption

type ConverterOptions

type ConverterOptions struct {
	MimeType *string
}

type Generator

type Generator interface {
	Gen(ctx context.Context, spec *Spec, writer io.Writer) error
}

type GeneratorOption

type GeneratorOption func(*GeneratorOptions) error

func WithTarget added in v0.0.8

func WithTarget(t string) GeneratorOption

type GeneratorOptions

type GeneratorOptions struct {
	Target string
}

type NewConverter added in v0.0.8

type NewConverter[T any] interface {
	RunnerFactory[T, Converter]
}

type NewGenerator added in v0.0.8

type NewGenerator[T any] interface {
	RunnerFactory[T, Generator]
}

type Opt added in v0.0.8

type Opt[T any] interface {
	~func(*T) error
}

type Runner added in v0.0.10

type Runner interface {
	Converter
	Generator
}

type RunnerFactory added in v0.0.12

type RunnerFactory[T any, V any] interface {
	func(context.Context, T, []string) (V, error)
}

type Spec

type Spec = tdl.Spec

type Type

type Type = tdl.Type

Jump to

Keyboard shortcuts

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