service

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPlannerService

func DefaultPlannerService() (*plannerService, error)

DefaultPlannerService initializes a planner service using default *auth.User credentials

func NewPlannerService

func NewPlannerService(cred *auth.User) (*plannerService, error)

NewPlannerService initializes the planner service with custom *auth.User credentials

Types

type PlannerService

type PlannerService interface {
	// contains filtered or unexported methods
}

PlannerService defines the interface for interacting with the planner service

type ServiceApi

type ServiceApi struct {
	// contains filtered or unexported fields
}

func NewServiceApi

func NewServiceApi(cred *auth.User) (*ServiceApi, error)

NewServiceApi creates and returns a new ServiceApi instance, initializing the base URL and HTTP client for making requests to the service API

func (*ServiceApi) DeleteRequest

func (api *ServiceApi) DeleteRequest(path string) (*http.Response, error)

DeleteRequest makes an HTTP DELETE request to the specified path with the provided token for authorization, returning the HTTP response.

func (*ServiceApi) GetRequest

func (api *ServiceApi) GetRequest(path string) (*http.Response, error)

GetRequest makes an HTTP GET request to the specified path, passing the provided token for authorization, and returns the HTTP response

func (*ServiceApi) PostRequest

func (api *ServiceApi) PostRequest(path string, body []byte) (*http.Response, error)

PostRequest makes an HTTP POST request to the specified path with the provided body and authorization token, returning the HTTP response

func (*ServiceApi) PutRequest

func (api *ServiceApi) PutRequest(path string, body []byte) (*http.Response, error)

PutRequest makes an HTTP PUT request to the specified path with the provided body and authorization token, returning the HTTP response.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL