model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessAll

func ProcessAll(base string) error

ProcessAll processes models starting at base

func WriteClientFile

func WriteClientFile(wr io.Writer, names []string) error

func WriteServerFile

func WriteServerFile(wr io.Writer) error

Types

type Model

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

Model represents a model

func New

func New(fullPath string, info os.FileInfo) Model

func (Model) ClientFilename

func (m Model) ClientFilename() string

func (Model) ClientName

func (m Model) ClientName() string

func (Model) ServerFilename

func (m Model) ServerFilename() string

func (Model) ServerName

func (m Model) ServerName() string

func (Model) TypesFilename

func (m Model) TypesFilename() string

func (Model) Write

func (m Model) Write(typesW io.Writer, clientW io.Writer, serverW io.Writer) error

Jump to

Keyboard shortcuts

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