Documentation
¶
Overview ¶
Package tmfservice provides a client for interacting with TMF (TM Forum) APIs.
Index ¶
- type TMFClient
- func (c *TMFClient) Delete(path string, headers map[string]string) (*http.Response, error)
- func (c *TMFClient) Get(path string, headers map[string]string) (*http.Response, error)
- func (c *TMFClient) GetList(path string, headers map[string]string) ([]TMFObject, error)
- func (c *TMFClient) Patch(path string, body []byte, headers map[string]string) (*http.Response, error)
- func (c *TMFClient) Post(path string, body []byte, headers map[string]string) (*http.Response, error)
- type TMFClientConfig
- type TMFObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TMFClient ¶
type TMFClient struct {
// contains filtered or unexported fields
}
TMFClient is a client for the TMForum API.
func NewClient ¶
func NewClient(config *TMFClientConfig) (*TMFClient, error)
NewClient creates a new client.
type TMFClientConfig ¶
type TMFClientConfig struct {
// BaseURL of the remote TMForum server
BaseURL string `json:"base_url" yaml:"base_url"`
// Timeout in seconds for HTTP requests
Timeout int `json:"timeout" yaml:"timeout"`
}
TMFClientConfig holds the configuration for the tmfclient package
Click to show internal directories.
Click to hide internal directories.