models

package
v0.0.0-...-7b6676d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	Id   int64 `json:"-"`
	Name string
}

type CompanyApi

type CompanyApi struct {
	Name string
}

type Language

type Language struct {
	Id   int64 `json:"-"`
	Name string
}

type LanguageApi

type LanguageApi struct {
	Name string
}

type Stack

type Stack struct {
	Id      int64
	Company Company
	// contains filtered or unexported fields
}

func NewStack

func NewStack(company *Company) (*Stack, error)

func NewStackFromApi

func NewStackFromApi(stackApi *StackApi) (*Stack, error)

func (*Stack) AddTechnology

func (s *Stack) AddTechnology(t *Technology) error

func (*Stack) GetTechnologies

func (s *Stack) GetTechnologies() []Technology

func (*Stack) MarshalJSON

func (s *Stack) MarshalJSON() ([]byte, error)

func (*Stack) RemoveTechnology

func (s *Stack) RemoveTechnology(t *Technology) error

type StackApi

type StackApi struct {
	Company      CompanyApi
	Technologies []TechnologyApi
}

type Technology

type Technology struct {
	Id   int64
	Name string
	// contains filtered or unexported fields
}

func NewTechnology

func NewTechnology(name string) (*Technology, error)

func NewTechnologyFromApi

func NewTechnologyFromApi(techApi *TechnologyApi) (*Technology, error)

func (*Technology) AddLanguage

func (t *Technology) AddLanguage(l *Language) error

func (*Technology) GetLanguages

func (t *Technology) GetLanguages() []Language

func (*Technology) MarshalJSON

func (t *Technology) MarshalJSON() ([]byte, error)

func (*Technology) RemoveLanguage

func (t *Technology) RemoveLanguage(l *Language) error

type TechnologyApi

type TechnologyApi struct {
	Name      string
	Languages []LanguageApi
}

Jump to

Keyboard shortcuts

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