Documentation ¶
Overview ¶
Package endpoint provides Graylog API endpoints.
Index ¶
- type Endpoints
- func (ep *Endpoints) EnabledStreams() string
- func (ep *Endpoints) IndexSet(id string) (*url.URL, error)
- func (ep *Endpoints) IndexSetStats(id string) (*url.URL, error)
- func (ep *Endpoints) IndexSets() string
- func (ep *Endpoints) IndexSetsStats() string
- func (ep *Endpoints) Input(id string) (*url.URL, error)
- func (ep *Endpoints) Inputs() string
- func (ep *Endpoints) PauseStream(id string) (*url.URL, error)
- func (ep *Endpoints) ResumeStream(id string) (*url.URL, error)
- func (ep *Endpoints) Role(name string) (*url.URL, error)
- func (ep *Endpoints) RoleMember(userName, roleName string) (*url.URL, error)
- func (ep *Endpoints) RoleMembers(name string) (*url.URL, error)
- func (ep *Endpoints) Roles() string
- func (ep *Endpoints) SetDefaultIndexSet(id string) (*url.URL, error)
- func (ep *Endpoints) Stream(id string) (*url.URL, error)
- func (ep *Endpoints) StreamRule(streamID, streamRuleID string) (*url.URL, error)
- func (ep *Endpoints) StreamRuleTypes(streamID string) (*url.URL, error)
- func (ep *Endpoints) StreamRules(streamID string) (*url.URL, error)
- func (ep *Endpoints) Streams() string
- func (ep *Endpoints) User(name string) (*url.URL, error)
- func (ep *Endpoints) Users() string
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 ¶
NewEndpoints returns a new Endpoints.
func (*Endpoints) EnabledStreams ¶
EnabledStreams returns GetEnabledStreams API's endpoint url.
func (*Endpoints) IndexSetStats ¶
IndexSetStats returns an IndexSet stats API's endpoint url.
func (*Endpoints) IndexSetsStats ¶
IndexSetsStats returns all IndexSets stats API's endpoint url.
func (*Endpoints) PauseStream ¶
PauseStream returns PauseStream API's endpoint url.
func (*Endpoints) ResumeStream ¶
ResumeStream returns ResumeStream API's endpoint url.
func (*Endpoints) RoleMember ¶
RoleMember returns given role member endpoint url.
func (*Endpoints) RoleMembers ¶
RoleMembers returns given role's member endpoint url.
func (*Endpoints) SetDefaultIndexSet ¶
SetDefaultIndexSet returns SetDefaultIndexSet API's endpoint url.
func (*Endpoints) StreamRule ¶
StreamRule returns a Stream Rule API's endpoint url.
func (*Endpoints) StreamRuleTypes ¶
StreamRuleTypes returns Stream Rule Types API's endpoint url.
func (*Endpoints) StreamRules ¶
StreamRules returns Stream Rules API's endpoint url.