Documentation
¶
Overview ¶
Package apex provides Apex REST endpoint operations.
Index ¶
- type HTTPClient
- type Service
- func (s *Service) Delete(ctx context.Context, path string) ([]byte, error)
- func (s *Service) Get(ctx context.Context, path string) ([]byte, error)
- func (s *Service) GetJSON(ctx context.Context, path string, result interface{}) error
- func (s *Service) Patch(ctx context.Context, path string, body interface{}) ([]byte, error)
- func (s *Service) Post(ctx context.Context, path string, body interface{}) ([]byte, error)
- func (s *Service) PostJSON(ctx context.Context, path string, body, result interface{}) error
- func (s *Service) Put(ctx context.Context, path string, body interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient interface {
Get(ctx context.Context, path string) ([]byte, error)
Post(ctx context.Context, path string, body interface{}) ([]byte, error)
Patch(ctx context.Context, path string, body interface{}) ([]byte, error)
Put(ctx context.Context, path string, body interface{}) ([]byte, error)
Delete(ctx context.Context, path string) ([]byte, error)
}
HTTPClient interface for dependency injection.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides Apex REST endpoint operations.
func NewService ¶
func NewService(client HTTPClient) *Service
NewService creates a new Apex REST service.
Click to show internal directories.
Click to hide internal directories.