client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type Client

type Client struct {
	Endpoint string
	// contains filtered or unexported fields
}

func New

func New(endpoint, username, password string) Client

func (*Client) Decode

func (c *Client) Decode(in []byte, out interface{}) error

func (*Client) DoRequest

func (c *Client) DoRequest(ctx context.Context, r LubeLoggerRequest) ([]byte, error)

func (*Client) HttpClient

func (c *Client) HttpClient(newClient *http.Client)

type LubeLoggerRequest

type LubeLoggerRequest interface {
	LLPath() string
	LLMethod() string
	LLPayload() []byte
	LLQuery() string
	LLContentType() string
}

type Query

type Query struct {
	Path        string
	Method      string
	Payload     []byte
	Query       url.Values
	ContentType string
}

func (Query) LLContentType

func (q Query) LLContentType() string

func (Query) LLMethod

func (Q Query) LLMethod() string

func (Query) LLPath

func (q Query) LLPath() string

func (Query) LLPayload

func (q Query) LLPayload() []byte

func (Query) LLQuery

func (q Query) LLQuery() string

Jump to

Keyboard shortcuts

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