endpoint

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package endpoint provides Graylog API endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

Endpoints represents each API's endpoint URLs.

func NewEndpoints

func NewEndpoints(endpoint string) (*Endpoints, error)

NewEndpoints returns a new Endpoints.

func (*Endpoints) AlarmCallbacks added in v0.5.0

func (ep *Endpoints) AlarmCallbacks() string

AlarmCallbacks returns AlarmCallbacks API's endpoint url.

func (*Endpoints) Alert added in v0.3.0

func (ep *Endpoints) Alert(id string) (*url.URL, error)

Alert returns an Alert API's endpoint url.

func (*Endpoints) AlertConditions added in v0.2.0

func (ep *Endpoints) AlertConditions() string

AlertConditions returns an Alert Condition API's endpoint url.

func (*Endpoints) Alerts added in v0.3.0

func (ep *Endpoints) Alerts() string

Alerts returns Alerts API's endpoint url.

func (*Endpoints) Dashboard added in v0.4.0

func (ep *Endpoints) Dashboard(id string) (*url.URL, error)

Dashboard returns an Dashboard API's endpoint url.

func (*Endpoints) Dashboards added in v0.4.0

func (ep *Endpoints) Dashboards() string

Dashboards returns an Dashboard API's endpoint url.

func (*Endpoints) EnabledStreams

func (ep *Endpoints) EnabledStreams() string

EnabledStreams returns GetEnabledStreams API's endpoint url.

func (*Endpoints) IndexSet

func (ep *Endpoints) IndexSet(id string) (*url.URL, error)

IndexSet returns an IndexSet API's endpoint url.

func (*Endpoints) IndexSetStats

func (ep *Endpoints) IndexSetStats(id string) (*url.URL, error)

IndexSetStats returns an IndexSet stats API's endpoint url.

func (*Endpoints) IndexSets

func (ep *Endpoints) IndexSets() string

IndexSets returns an IndexSet API's endpoint url.

func (*Endpoints) IndexSetsStats

func (ep *Endpoints) IndexSetsStats() string

IndexSetsStats returns all IndexSets stats API's endpoint url.

func (*Endpoints) Input

func (ep *Endpoints) Input(id string) (*url.URL, error)

Input returns an Input API's endpoint url.

func (*Endpoints) Inputs

func (ep *Endpoints) Inputs() string

Inputs returns an Input API's endpoint url.

func (*Endpoints) PauseStream

func (ep *Endpoints) PauseStream(id string) (*url.URL, error)

PauseStream returns PauseStream API's endpoint url.

func (*Endpoints) ResumeStream

func (ep *Endpoints) ResumeStream(id string) (*url.URL, error)

ResumeStream returns ResumeStream API's endpoint url.

func (*Endpoints) Role

func (ep *Endpoints) Role(name string) (*url.URL, error)

Role returns a Role API's endpoint url.

func (*Endpoints) RoleMember

func (ep *Endpoints) RoleMember(userName, roleName string) (*url.URL, error)

RoleMember returns given role member endpoint url.

func (*Endpoints) RoleMembers

func (ep *Endpoints) RoleMembers(name string) (*url.URL, error)

RoleMembers returns given role's member endpoint url.

func (*Endpoints) Roles

func (ep *Endpoints) Roles() string

Roles returns a Role API's endpoint url.

func (*Endpoints) SetDefaultIndexSet

func (ep *Endpoints) SetDefaultIndexSet(id string) (*url.URL, error)

SetDefaultIndexSet returns SetDefaultIndexSet API's endpoint url.

func (*Endpoints) Stream

func (ep *Endpoints) Stream(id string) (*url.URL, error)

Stream returns a Stream API's endpoint url.

func (*Endpoints) StreamRule

func (ep *Endpoints) StreamRule(streamID, streamRuleID string) (*url.URL, error)

StreamRule returns a Stream Rule API's endpoint url.

func (*Endpoints) StreamRuleTypes

func (ep *Endpoints) StreamRuleTypes(streamID string) (*url.URL, error)

StreamRuleTypes returns Stream Rule Types API's endpoint url.

func (*Endpoints) StreamRules

func (ep *Endpoints) StreamRules(streamID string) (*url.URL, error)

StreamRules returns Stream Rules API's endpoint url.

func (*Endpoints) Streams

func (ep *Endpoints) Streams() string

Streams returns a Stream API's endpoint url.

func (*Endpoints) User

func (ep *Endpoints) User(name string) (*url.URL, error)

User returns a User API's endpoint url.

func (*Endpoints) Users

func (ep *Endpoints) Users() string

Users returns a User API's endpoint url.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL