func NewClient(ep string, name, password string) (*Client, error) {
	endpoints, err := endpoint.NewEndpoints(ep)
	if err != nil {
		return nil, err
	}
	return &Client{name: name, password: password, endpoints: endpoints}, nil
}
// NewClient returns a new Graylog API Client.
// ep is API endpoint url (ex. http://localhost:9000/api).
// name and password are authentication name and password.
// If you use an access token instead of password, name is access token and password is literal password "token".
// If you use a session token instead of password, name is session token and password is literal password "session".
NewClient returns a new Graylog API Client.
ep is API endpoint url (ex.
// NewClient returns a new Graylog API Client . // ep is API endpoint url ( ex . http : // localhost : 9000 / api ) . // name and password are authentication name and password . // If you use an access token instead of password name is access token and password is literal password " token " . // If you use a session token instead of password name is session token and password is literal password " session " .
func NewClient(ep string, name, password string) (*Client, error) {
	endpoints, err := endpoint.NewEndpoints(ep)
	if err != nil {
		return nil, err
	}
	return &Client{name: name, password: password, endpoints: endpoints}, nil
}
func NewClient ( ep string , name , password string ) ( * Client , error ) { endpoints , err := endpoint . NewEndpoints ( ep ) if err != nil { return nil , err } return & Client { name : name , password : password , endpoints : endpoints } , nil }
NewClient returns a new Graylog API Client.
NewClient returns a new Graylog API Client .