Documentation ¶
Index ¶
- type HttpPollingDataset
- type SynapseAPI
- func (s *SynapseAPI) Auth(ctx context.Context, auth *auths.HttpReqAuth) error
- func (s *SynapseAPI) GetServices(ctx context.Context) ([]servicev4.HttpRsp_AgentServicePolling, error)
- func (s *SynapseAPI) GetToken() string
- func (s *SynapseAPI) IsTokenExpired() bool
- func (s *SynapseAPI) UpdateServices(ctx context.Context, service *servicev4.HttpReq_AgentServiceUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpPollingDataset ¶
type HttpPollingDataset []servicev4.HttpRsp_AgentServicePolling
func (*HttpPollingDataset) UnmarshalJSON ¶
func (s *HttpPollingDataset) UnmarshalJSON(b []byte) error
type SynapseAPI ¶
type SynapseAPI struct {
// contains filtered or unexported fields
}
func NewSynapseAPI ¶
func NewSynapseAPI(address string) (*SynapseAPI, error)
func NewSynapseAPIWithClient ¶
func NewSynapseAPIWithClient(client *httpclient.HttpClient) *SynapseAPI
func (*SynapseAPI) Auth ¶
func (s *SynapseAPI) Auth(ctx context.Context, auth *auths.HttpReqAuth) error
func (*SynapseAPI) GetServices ¶
func (s *SynapseAPI) GetServices(ctx context.Context) ([]servicev4.HttpRsp_AgentServicePolling, error)
func (*SynapseAPI) GetToken ¶
func (s *SynapseAPI) GetToken() string
func (*SynapseAPI) IsTokenExpired ¶
func (s *SynapseAPI) IsTokenExpired() bool
func (*SynapseAPI) UpdateServices ¶
func (s *SynapseAPI) UpdateServices(ctx context.Context, service *servicev4.HttpReq_AgentServiceUpdate) error
Click to show internal directories.
Click to hide internal directories.