writers

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AngularWriter

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

AngularWriter struct exposes methods to generate the angular JS services code

func NewAngularWriter

func NewAngularWriter() (*AngularWriter, error)

Angular writer factory

func (*AngularWriter) WriteResource

func (c *AngularWriter) WriteResource(resource *gen.Resource, w io.Writer) error

Write code for a resource

type ClientWriter

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

ClientWriter struct exposes methods to generate the go API client code

func NewClientWriter

func NewClientWriter() (*ClientWriter, error)

Client writer factory

func (*ClientWriter) WriteHeader

func (c *ClientWriter) WriteHeader(pkg string, needTime, needJson bool, w io.Writer) error

Write header text

func (*ClientWriter) WriteResource

func (c *ClientWriter) WriteResource(resource *gen.Resource, w io.Writer) error

Write code for a resource

func (*ClientWriter) WriteResourceHeader

func (c *ClientWriter) WriteResourceHeader(name string, w io.Writer)

Write resource header

func (*ClientWriter) WriteType

func (c *ClientWriter) WriteType(o *gen.ObjectDataType, w io.Writer)

Write type declaration for resource action arguments

func (*ClientWriter) WriteTypeSectionHeader

func (c *ClientWriter) WriteTypeSectionHeader(w io.Writer)

Write separator between resources and data types

type MetadataWriter

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

MetadataWriter struct exposes methods to generate the go API client command line tool

func NewMetadataWriter

func NewMetadataWriter() (*MetadataWriter, error)

Commands writer factory

func (*MetadataWriter) WriteHeader

func (c *MetadataWriter) WriteHeader(pkg string, w io.Writer) error

Write header text

func (*MetadataWriter) WriteMetadata

func (c *MetadataWriter) WriteMetadata(d *gen.ApiDescriptor, w io.Writer) error

Write metadata

Directories

Path Synopsis
Package text provides rudimentary functions for manipulating text in paragraphs.
Package text provides rudimentary functions for manipulating text in paragraphs.

Jump to

Keyboard shortcuts

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