types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Author             string
	ProjectName        string
	ProjectVersion     string
	ProjectNames       []string
	TypeDefinitions    map[string]TypeDefinition
	Imports            []Import
	EndpointSignatures []EndpointSignature
	Meta               map[string]interface{}
}

func GetContext

func GetContext(project *domain.Project, projectNames []string) (*Context, error)

type EndpointSignature

type EndpointSignature struct {
	Method string
	Path   string
	Input  []Field
	Output Type
}

type Field

type Field struct {
	Name string
	Type Type // not recursive
}

Reprensents both struct definition fields and input arguments (both are a list of name - type pairs)

type Import

type Import struct {
	Author      string
	ProjectName string
}

type Type

type Type struct {
	IsList bool
	Import Import // empty for local packages
	Name   string
}

type TypeDefinition

type TypeDefinition struct {
	Name   string
	Fields []Field
}

Jump to

Keyboard shortcuts

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