models

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CherryPath = "github.com/containerum/cherry"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Name      string
	SID       cherry.ErrSID
	Error     []TOMLerror
	Templates map[string]string
	Keys      map[string]string
}

func (*Service) GenerateSource

func (service *Service) GenerateSource(wr io.Writer) error

func (*Service) GenerateSourceString

func (service *Service) GenerateSourceString() (string, error)

func (*Service) MarshalJSON

func (service *Service) MarshalJSON() ([]byte, error)

func (*Service) Validate

func (service *Service) Validate() error

type TOMLerror

type TOMLerror struct {
	Name       string
	Message    string
	StatusHTTP int
	SID        cherry.ErrSID
	Kind       cherry.ErrKind
	Comment    string
	Details    []string
}

func (*TOMLerror) Cherry

func (terror *TOMLerror) Cherry() *cherry.Err

func (*TOMLerror) GenerateSource

func (terror *TOMLerror) GenerateSource() *jen.Statement

func (*TOMLerror) SourceCodeID

func (terror *TOMLerror) SourceCodeID() string

Jump to

Keyboard shortcuts

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