o2client_runtime

package module
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBoolListToString added in v0.0.5

func ConvertBoolListToString(v []bool) []string

func ConvertBoolToString added in v0.0.5

func ConvertBoolToString(v bool) string

func ConvertByteListToString added in v0.0.5

func ConvertByteListToString(v []byte) []string

func ConvertByteToString added in v0.0.5

func ConvertByteToString(v byte) string

func ConvertDoubleListToString

func ConvertDoubleListToString(v []float64) []string

func ConvertDoubleToString

func ConvertDoubleToString(v float64) string

func ConvertInt16ListToString

func ConvertInt16ListToString(v []int16) []string

func ConvertInt16ToString

func ConvertInt16ToString(v int16) string

func ConvertInt32ListToString

func ConvertInt32ListToString(v []int32) []string

func ConvertInt32ToString

func ConvertInt32ToString(v int32) string

func ConvertInt64ListToString

func ConvertInt64ListToString(v []int64) []string

func ConvertInt64ToString

func ConvertInt64ToString(v int64) string

Types

type ServiceBase

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

func (*ServiceBase) JoinUrl

func (b *ServiceBase) JoinUrl(urlPath string) (string, error)

type ServiceClient added in v0.0.3

type ServiceClient struct {
	*ServiceBase
	// contains filtered or unexported fields
}

func NewDefaultServiceClient added in v0.0.3

func NewDefaultServiceClient(host string) *ServiceClient

func NewServiceClient added in v0.0.3

func NewServiceClient(client *dghttp.DgHttpClient, host string) *ServiceClient

func (*ServiceClient) DoGet added in v0.0.3

func (c *ServiceClient) DoGet(ctx *dgctx.DgContext, urlPath string, headers map[string]string, result any) error

func (*ServiceClient) DoPost added in v0.0.3

func (c *ServiceClient) DoPost(ctx *dgctx.DgContext, urlPath string, param any, headers map[string]string, result any) error

type WrapUrl

type WrapUrl interface {
	AddParam(name string, value string)
	AddParamWithValues(name string, values []string)
	AddSimpleParamObject(param any) error
	ToString() string
}

func NewWrapUrl

func NewWrapUrl(urlPath string) (WrapUrl, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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