Documentation ¶
Overview ¶
Package services provides methods for managing an app's services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
Delete service from app If given service for the app doesn't exists then error returned
func New ¶
func New(c *deis.Client, appID string, procfileType string, pathPattern string) (api.Service, error)
New adds a new service to an app. App should already exists. Service is the way to route some traffic matching given URL pattern to worker different than `web` procfileType - name of the process in Procfile (i.e. <process type> from the `<process type>: <command>`), e.g. `webhooks` for more about Procfile see this https://devcenter.heroku.com/articles/procfile pathPattern - one or several regexp patterns separated by comma, all request matching given regexp are routed to the procfileType workers. E.g. `/webhooks/notify,~ ^/users/[0-9]+/.*/webhooks/notify,/webhooks/rest` procfileType and pathPattern are mandatory and should have valid values.
Types ¶
This section is empty.