testx

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWebsocketClient

func CreateWebsocketClient(ip string, port int, endpoint string) (*websocket.Conn, error)

func Errstring

func Errstring(err error) string

errstring returns the string representation of an error.

func InitBroker

func InitBroker(id string) (string, func(), error)

func InitEnv

func InitEnv(id string)

func TestHttp

func TestHttp(client *http.Client, url string, method string) error

Types

type MockTuple

type MockTuple struct {
	Map      map[string]any
	Template map[string]string
}

func (MockTuple) AllProps

func (m MockTuple) AllProps() map[string]string

func (MockTuple) DynamicProps

func (m MockTuple) DynamicProps(template string) (string, bool)

func (MockTuple) ToMap

func (m MockTuple) ToMap() map[string]any

func (MockTuple) Value

func (m MockTuple) Value(key, table string) (any, bool)

Jump to

Keyboard shortcuts

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