generator

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SegmentIdentifier

type SegmentIdentifier struct {
	Name          string
	InterfaceName string
	Versions      []SegmentIdentifier
	Version       int
}

SegmentIdentifier represent a segment definition for the generator

type SegmentUnmarshalerGenerator

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

SegmentUnmarshalerGenerator generates unmarshaler for segment definitions

func NewSegmentUnmarshaler

func NewSegmentUnmarshaler(segment SegmentIdentifier, packageName string, fileSet *token.FileSet, file *ast.File) *SegmentUnmarshalerGenerator

NewSegmentUnmarshaler generates an unmarhsaler generator for the provided segment

func (*SegmentUnmarshalerGenerator) Generate

func (s *SegmentUnmarshalerGenerator) Generate() (io.Reader, error)

Generate generates an unmarhsaler for the segment definition and provides it as an io.Reader

type VersionedSegmentUnmarshalerGenerator

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

VersionedSegmentUnmarshalerGenerator is a generator for unmarshaler of versioned segments

func NewVersionedSegmentUnmarshaler

func NewVersionedSegmentUnmarshaler(segment SegmentIdentifier, packageName string, fileSet *token.FileSet, file *ast.File) *VersionedSegmentUnmarshalerGenerator

NewVersionedSegmentUnmarshaler creates a new Unmarshalergenerator for versioned segments

func (*VersionedSegmentUnmarshalerGenerator) Generate

Generate generates an unmarhsaler for the segment definition and provides it as an io.Reader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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