api

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	BaseURL  string
	Auth     string
	AuthType string
	Headers  map[string]string
	Spec     string
}

func NewSession

func NewSession(cfg *config.API) (*Session, error)

func (*Session) Delete

func (s *Session) Delete(path string) (string, error)

func (*Session) Get

func (s *Session) Get(path string) (string, error)

func (*Session) Interactive

func (s *Session) Interactive() error

func (*Session) Post

func (s *Session) Post(path, body string) (string, error)

func (*Session) Put

func (s *Session) Put(path, body string) (string, error)

func (*Session) Request

func (s *Session) Request(method, path, body string, extra map[string]string) (string, error)

Jump to

Keyboard shortcuts

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