Documentation ¶
Index ¶
- Constants
- Variables
- type ActiveSession
- type Client
- func (c *Client) GetWellShardsInTimeframe(guid, well string, tf util.Timeframe) ([]string, error)
- func (c *Client) GetWellTimeframe(guid, well string) (util.Timeframe, error)
- func (c *Client) ListIndexerWells(guid string) ([]string, error)
- func (c *Client) ListIndexers() ([]string, error)
- func (c *Client) Login(user, pass string) error
- func (c *Client) PullShard(sid ShardID, spath string, cancel context.Context) error
- func (c *Client) PullTags(guid string) (tset []tags.TagPair, err error)
- func (c *Client) PushShard(sid ShardID, spath string, tps []tags.TagPair, tags []string, ...) error
- func (c *Client) SetUserAgent(val string)
- func (c *Client) SyncTags(guid string, idxTags []tags.TagPair) (tset []tags.TagPair, err error)
- func (c *Client) Test() error
- func (c *Client) TestLogin() error
- type ClientSource
- type ShardID
Constants ¶
View Source
const ( STATE_NEW clientState = iota STATE_AUTHED clientState = iota STATE_CLOSED clientState = iota STATE_LOGGED_OFF clientState = iota )
View Source
const ( //login field names USER_FIELD string = "User" PASS_FIELD string = "Pass" //path to login url LOGIN_URL = `/api/login` TEST_URL = `/api/test` TEST_AUTH_URL = `/api/testauth` PUSH_SHARD_URL = `/api/shard/%v/%v/%v/%v` )
Variables ¶
View Source
var ( ErrInvalidTestStatus error = errors.New("Invalid status on webserver test") ErrAccountLocked error = errors.New(`Account is Locked`) ErrLoginFail error = errors.New(`Username and Password are incorrect`) ErrNotSynced error = errors.New(`Client has not been synced`) ErrNoLogin error = errors.New("Not logged in") )
View Source
var (
ErrNotAuthed = errors.New("Not Authed")
)
Functions ¶
This section is empty.
Types ¶
type ActiveSession ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient creates a new client targeted at server. enforceCertificate allows for self-signed certs
func (*Client) GetWellShardsInTimeframe ¶
func (*Client) GetWellTimeframe ¶
func (*Client) ListIndexers ¶
func (*Client) SetUserAgent ¶
type ClientSource ¶
Click to show internal directories.
Click to hide internal directories.