MCPcopy
hub / github.com/vulcand/vulcand / UpsertFrontend

Method UpsertFrontend

api/client.go:106–109  ·  view source on GitHub ↗
(f engine.Frontend, ttl time.Duration)

Source from the content-addressed store, hash-verified

104}
105
106func (c *Client) UpsertFrontend(f engine.Frontend, ttl time.Duration) error {
107 _, err := c.Post(c.endpoint("frontends"), frontendPack{Frontend: f, TTL: ttl.String()})
108 return err
109}
110
111func (c *Client) GetFrontend(fk engine.FrontendKey) (*engine.Frontend, error) {
112 response, err := c.Get(c.endpoint("frontends", fk.Id), url.Values{})

Callers

nothing calls this directly

Calls 3

PostMethod · 0.95
endpointMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected