client

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 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 PlantUMLClient

type PlantUMLClient interface {
	CompressDiagram([]byte) (string, error)

	Render(PlantUMLRender, []byte) (string, []byte, error)
	RenderFile(PlantUMLRender, string) (string, []byte, error)

	BytesToSVG([]byte) (string, []byte, error)
	StringToSVG(string) (string, []byte, error)
	FileToSVG(string) (string, []byte, error)

	BytesToPNG([]byte) (string, []byte, error)
	StringToPNG(string) (string, []byte, error)
	FileToPNG(string) (string, []byte, error)

	BytesToASCII([]byte) (string, []byte, error)
	StringToASCII(string) (string, []byte, error)
	FileToASCII(string) (string, []byte, error)
}

func NewPlantUMLClient

func NewPlantUMLClient(u string) (PlantUMLClient, error)

type PlantUMLRender

type PlantUMLRender string
const (
	SVG   PlantUMLRender = "svg"
	PNG   PlantUMLRender = "png"
	ASCII PlantUMLRender = "ascii"
)

Jump to

Keyboard shortcuts

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