postman

package
v0.0.0-...-b115b58 Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schema

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

Schema is the postman schema.

func ParseFile

func ParseFile(filename string) (Schema, error)

ParseFile parses a file by filename, unmarshal data and returns schema.

func (*Schema) AddModels

func (s *Schema) AddModels(newModels []models.Model) error

AddModels adds new models to schema Non nil verbose error returns if something goes wrong

func (*Schema) Save

func (s *Schema) Save(filename string) error

Save saves the schema to file and returns nil.

func (*Schema) SetModels

func (s *Schema) SetModels(models string)

SetModels replaces models with new ones. If models item is missing, creates it.

Jump to

Keyboard shortcuts

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