liveparams

package
v0.0.0-...-60cbc98 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll(ctx context.Context, nk runtime.NakamaModule) (map[string]interface{}, error)

func GetLiveParamString

func GetLiveParamString(name string) (string, error)

func RegisterLiveParameters

func RegisterLiveParameters(ctx context.Context, nk runtime.NakamaModule, init runtime.Initializer, reg func(reg Registrar)) error

func SetLiveParamString

func SetLiveParamString(ctx context.Context, nk runtime.NakamaModule, name string, newValue string) error

Types

type LiveParamsModel

type LiveParamsModel struct {
	Parameters map[string]interface{} `json:"parameters"`
}

type Registrar

type Registrar interface {
	LiveInt(name string, defaultValue int) *int
	LiveFloat(name string, defaultValue float64) *float64
	LiveString(name string, defaultValue string) *string
	LiveBool(name string, defaultValue bool) *bool
}

type SetLiveParam_Request

type SetLiveParam_Request struct {
	Name     string `json:"name"`
	NewValue string `json:"newValue"`
}

Jump to

Keyboard shortcuts

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