Documentation ¶
Index ¶
- type Rest
- func (r *Rest) Delete(url *types.URI) int
- func (r *Rest) Get(url *types.URI) (int, string)
- func (r *Rest) Post(url *types.URI, data []byte) (int, error)
- func (r *Rest) PostCloudEvent(url *types.URI, e ce.Event) (int, error)
- func (r *Rest) PostEvent(url *types.URI, e event.Event) error
- func (r *Rest) PostWithReturn(url *types.URI, data []byte) (int, []byte)
- func (r *Rest) Put(url *types.URI) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rest ¶
type Rest struct {
// contains filtered or unexported fields
}
Rest client to make http request
func (*Rest) PostCloudEvent ¶
PostCloudEvent post an Cloud Event to the give url and check for error
func (*Rest) PostWithReturn ¶
PostWithReturn post with data and return data
Click to show internal directories.
Click to hide internal directories.