# README

Endpoints

Compatible with Logz.io's endpoints API.

For each type of endpoint there is a different structure, below you can find an example for creating a Slack endpoint. For more info, see Logz.io docs or check our endpoints tests for more examples.

client, _ := endpoints.New(apiToken, apiServerAddress)
endpoint, err := client.CreateEndpoint(endpoints.CreateOrUpdateEndpoint{
                Title:         "New endpoint",
                Description:   "this is a description",
                Type:          "slack",
                Url:           "https://jsonplaceholder.typicode.com/todos/1",
            })
functionfunc name
create endpointfunc (c *EndpointsClient) CreateEndpoint(endpoint CreateOrUpdateEndpoint) (*CreateOrUpdateEndpointResponse, error)
delete endpointfunc (c *EndpointsClient) DeleteEndpoint(endpointId int64) error
get endpointfunc (c *EndpointsClient) GetEndpoint(endpointId int64) (*Endpoint, error)
list endpointsfunc (c *EndpointsClient) ListEndpoints() ([]Endpoint, error)
update endpointfunc (c *EndpointsClient) UpdateEndpoint(id int64, endpoint CreateOrUpdateEndpoint) (*CreateOrUpdateEndpointResponse, error)

# Functions

No description provided by the author

# Constants

supported endpoint types.
supported endpoint types.
supported endpoint types.
supported endpoint types.
supported endpoint types.
supported endpoint types.
supported endpoint types.
supported endpoint types.
supported endpoint types.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author