Documentation ¶
Index ¶
- func NewCypressMessage(event *Event) (*cypress.Message, error)
- type Event
- type EventsOptions
- type EventsResponse
- type Logger
- type LogglyRecv
- func (lr *LogglyRecv) BufferEvents(events []*Event) error
- func (lr *LogglyRecv) Close() error
- func (lr *LogglyRecv) EncodeEventsURL(o *EventsOptions) string
- func (lr *LogglyRecv) EncodeRSIDURL(o *RSIDOptions) string
- func (lr *LogglyRecv) Generate() (*cypress.Message, error)
- func (lr *LogglyRecv) GetBody(url string) ([]byte, error)
- func (lr *LogglyRecv) Search(ro *RSIDOptions, eo *EventsOptions) ([]*Event, error)
- func (lr *LogglyRecv) SearchEvents(o *EventsOptions) ([]*Event, error)
- func (lr *LogglyRecv) SearchRSID(o *RSIDOptions) (*RSIDResponse, error)
- func (lr *LogglyRecv) SetDefaultEventsOptions(o *EventsOptions) *EventsOptions
- func (lr *LogglyRecv) SetDefaultRSIDOptions(o *RSIDOptions) *RSIDOptions
- type Plugin
- type RSID
- type RSIDOptions
- type RSIDResponse
- type Recv
- type Send
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventsOptions ¶
type EventsResponse ¶
type LogglyRecv ¶
type LogglyRecv struct { *http.Client Username string Password string RSIDRootURL string EventsRootURL string RSIDOptions *RSIDOptions EventsOptions *EventsOptions EventBuffer chan *Event }
func NewLogglyRecv ¶
func NewLogglyRecv(account, username, password string, ro *RSIDOptions, eo *EventsOptions, bufferSize int) (*LogglyRecv, error)
func (*LogglyRecv) BufferEvents ¶
func (lr *LogglyRecv) BufferEvents(events []*Event) error
func (*LogglyRecv) Close ¶
func (lr *LogglyRecv) Close() error
func (*LogglyRecv) EncodeEventsURL ¶
func (lr *LogglyRecv) EncodeEventsURL(o *EventsOptions) string
func (*LogglyRecv) EncodeRSIDURL ¶
func (lr *LogglyRecv) EncodeRSIDURL(o *RSIDOptions) string
func (*LogglyRecv) Search ¶
func (lr *LogglyRecv) Search(ro *RSIDOptions, eo *EventsOptions) ([]*Event, error)
func (*LogglyRecv) SearchEvents ¶
func (lr *LogglyRecv) SearchEvents(o *EventsOptions) ([]*Event, error)
func (*LogglyRecv) SearchRSID ¶
func (lr *LogglyRecv) SearchRSID(o *RSIDOptions) (*RSIDResponse, error)
func (*LogglyRecv) SetDefaultEventsOptions ¶
func (lr *LogglyRecv) SetDefaultEventsOptions(o *EventsOptions) *EventsOptions
func (*LogglyRecv) SetDefaultRSIDOptions ¶
func (lr *LogglyRecv) SetDefaultRSIDOptions(o *RSIDOptions) *RSIDOptions
type Plugin ¶
type RSIDOptions ¶
type RSIDResponse ¶
type RSIDResponse struct {
RSID `json:"rsid"`
}
func NewRSID ¶
func NewRSID(body []byte) (*RSIDResponse, error)
type Recv ¶
type Recv struct { Account string `short:"a" long:"account" description:"Loggly account name"` Username string `short:"u" long:"username" description:"Loggly username"` Password string `short:"p" long:"password" description:"Loggly password"` Q string `short:"q" long:"query" description:"Loggly search query"` From string `long:"from" default:"-24h" description:"Start time for the search."` Until string `long:"until" default:"now" description:"End time for the search."` Order string `long:"order" default:"desc" description:"Direction of results returned, either asc or desc."` Size uint `long:"size" default:"100" description:"Number of rows returned by search."` BufferSize int `long:"buffersize" default:"100"` }
Click to show internal directories.
Click to hide internal directories.