sdk

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPUrlEnv     = "HAKO_HTTP_URL"
	GRPCUrlEnv     = "HAKO_GRPC_URL"
	HTTPDefaultUrl = "http://localhost:8030"
	GRPCDefaultUrl = "localhost:8031"
)

Variables

View Source
var GRPCClient pb.HakoServiceClient = nil

Functions

func NewGRPCClient

func NewGRPCClient(url string) (pb.HakoServiceClient, error)

Types

type HTTPSdk

type HTTPSdk struct {
	*http.Client
	// contains filtered or unexported fields
}
var HTTPClient *HTTPSdk = nil

func NewHTTPClient

func NewHTTPClient(url string) *HTTPSdk

func (*HTTPSdk) GetFile

func (s *HTTPSdk) GetFile(filename string) ([]byte, error)

func (*HTTPSdk) GetFileInfo

func (s *HTTPSdk) GetFileInfo(uuid string) (*dto.HandleFileInfoOut, error)

func (*HTTPSdk) UploadFiles

func (s *HTTPSdk) UploadFiles(files map[string][]byte) error

Jump to

Keyboard shortcuts

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