model

package
v0.0.0-...-2f2caa4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: MIT Imports: 5 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginToEssentier

func LoginToEssentier(url, username, password string) (string, error)

Types

type JwtToken

type JwtToken struct {
	Token string `json:"token" form:"token"`
}

type LoginCredential

type LoginCredential struct {
	Password string `json:"password"`
	Email    string `json:"email"`
}

type Provider

type Provider interface {
	GetService(key string) (Service, error)
	Detect() bool
	Release(Service) error
	Init() error
}

type ProviderRegistry

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

func (*ProviderRegistry) RegisterProvider

func (registry *ProviderRegistry) RegisterProvider(provider Provider)

func (*ProviderRegistry) ResolveProvider

func (registry *ProviderRegistry) ResolveProvider() (Provider, error)

type Service

type Service struct {
	Id       string `json:"id"`
	IP       string `json:"ip"`
	Port     int    `json:"port"`
	Protocol string `json:"protocol"`
}

func (*Service) GetUrl

func (s *Service) GetUrl() string

Jump to

Keyboard shortcuts

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