Documentation
¶
Index ¶
- Variables
- func SetDefaults()
- type Client
- func (c *Client) CreateMW(_ context.Context, _ *storage.MW) (string, error)
- func (c *Client) DeleteMW(_ context.Context, _ string) error
- func (c *Client) GetAllActive(_ context.Context) ([]*storage.MW, error)
- func (c *Client) GetMWByAPIID(_ context.Context, _ string) (*storage.MW, error)
- func (c *Client) GetMWByID(_ context.Context, id string) (*storage.MW, error)
- func (c *Client) InitMservStore(_ context.Context, tag string) error
- func (c *Client) UpdateMW(_ context.Context, _ *storage.MW) (string, error)
- type Config
- type StoreConf
Constants ¶
This section is empty.
Variables ¶
View Source
var GetConf = func() *Config { if sconf == nil { sconf = &Config{} err := json.Unmarshal(conf.ReadConf(), sconf) if err != nil { log.Fatal("Failed to unmarshal slave driver config: ", err) } SetDefaults() } return sconf }
Variable so we can override
Functions ¶
func SetDefaults ¶
func SetDefaults()
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewSlaveClient ¶
func (*Client) GetAllActive ¶
func (*Client) GetMWByAPIID ¶
GetMWByAPIID is not yet implemented.
func (*Client) InitMservStore ¶
Click to show internal directories.
Click to hide internal directories.