matplotlib

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithResourcesDir

func WithResourcesDir(resourcesDir string) Parameter

WithResourcesDir sets the resources directory for the module.

type Service

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

Service is graph generator using matplotlib.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new service.

func (*Service) Graph

func (s *Service) Graph(ctx context.Context, in *types.Graph) (io.Reader, error)

Graph generates a raph from its definition.

Jump to

Keyboard shortcuts

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