Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "0.0.2"
Variables ¶
This section is empty.
Functions ¶
func CloudServerID ¶
func CloudServerID() string
func WriteToConfig ¶ added in v0.0.2
Types ¶
type Backend ¶
type Backend interface { // Saves current configuration to a specific file Save() error // APIs to control backend metadata // Gets value from key Get(serverID string, key string) (string, error) // Put value on the key Put(serverID string, key string, value string) error // Delete value on the key Delete(serverID string, key string) error }
func FindBackend ¶
type Config ¶ added in v0.0.2
type Config struct {
URI string
}
func DefaultConfig ¶ added in v0.0.2
type ConsulBackend ¶
type ConsulBackend struct {
// contains filtered or unexported fields
}
func NewConsulBackend ¶
func NewConsulBackend(hostWithPort string, ssl bool) (*ConsulBackend, error)
func (*ConsulBackend) Get ¶
func (b *ConsulBackend) Get(serverID string, key string) (string, error)
func (*ConsulBackend) Put ¶
func (b *ConsulBackend) Put(serverID string, key string, value string) error
func (*ConsulBackend) Save ¶
func (b *ConsulBackend) Save() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.