ws

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WSResponse

type WSResponse struct {
	Data *interface{}            `json:"data,omitempty"`
	Meta *map[string]interface{} `json:"meta,omitempty"`
}

func CreateWSResponse

func CreateWSResponse(
	data *interface{},
	meta *map[string]interface{},
) WSResponse

CreateWSResponse is a constructor for create an WS response. WSResponse is a struct with two field: data (store the WS's result) and meta (store the WS's metadata)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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