Unverified Commit e50a7e4a authored by Gabriel's avatar Gabriel Committed by GitHub
Browse files

Fix annotation typos (#1017)

parent 34d32802
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -35,13 +35,14 @@ import (
	"encoding/pem"
	"errors"
	"fmt"
	"github.com/heroiclabs/nakama/v3/internal/satori"
	"io"
	"net/http"
	"strings"
	"time"
	"unicode/utf8"

	"github.com/heroiclabs/nakama/v3/internal/satori"

	"github.com/dop251/goja"
	"github.com/gofrs/uuid"
	jwt "github.com/golang-jwt/jwt/v4"
@@ -8195,7 +8196,7 @@ func (n *runtimeJavascriptNakamaModule) satoriAuthenticate(r *goja.Runtime) func

// @group satori
// @summary Get identity properties.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @return properties(type=nkruntime.Properties) The identity properties.
// @return error(error) An optional error value if an error occurred.
func (n *runtimeJavascriptNakamaModule) satoriPropertiesGet(r *goja.Runtime) func(goja.FunctionCall) goja.Value {
@@ -8218,7 +8219,7 @@ func (n *runtimeJavascriptNakamaModule) satoriPropertiesGet(r *goja.Runtime) fun

// @group satori
// @summary Update identity properties.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param properties(type=nkruntime.PropertiesUpdate) The identity properties to update.
// @return error(error) An optional error value if an error occurred.
func (n *runtimeJavascriptNakamaModule) satoriPropertiesUpdate(r *goja.Runtime) func(goja.FunctionCall) goja.Value {
@@ -8252,7 +8253,7 @@ func (n *runtimeJavascriptNakamaModule) satoriPropertiesUpdate(r *goja.Runtime)

// @group satori
// @summary Publish an event.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param events(type=nkruntime.Event[]) An array of events to publish.
// @return error(error) An optional error value if an error occurred.
func (n *runtimeJavascriptNakamaModule) satoriPublishEvents(r *goja.Runtime) func(goja.FunctionCall) goja.Value {
@@ -8331,7 +8332,7 @@ func (n *runtimeJavascriptNakamaModule) satoriPublishEvents(r *goja.Runtime) fun

// @group satori
// @summary List experiments.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param names(type=string[], optional=true, default=[]) Optional list of experiment names to filter.
// @return experiments(type=nkruntime.Experiment[]) The experiment list.
// @return error(error) An optional error value if an error occurred.
@@ -8378,7 +8379,7 @@ func (n *runtimeJavascriptNakamaModule) satoriExperimentsList(r *goja.Runtime) f

// @group satori
// @summary List flags.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param names(type=string[], optional=true, default=[]) Optional list of flag names to filter.
// @return flags(type=nkruntime.Flag[]) The flag list.
// @return error(error) An optional error value if an error occurred.
@@ -8426,7 +8427,7 @@ func (n *runtimeJavascriptNakamaModule) satoriFlagsList(r *goja.Runtime) func(go

// @group satori
// @summary List live events.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param names(type=string[], optional=true, default=[]) Optional list of live event names to filter.
// @return liveEvents(type=nkruntime.LiveEvent[]) The live event list.
// @return error(error) An optional error value if an error occurred.
+8 −7
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ import (
	"encoding/pem"
	"errors"
	"fmt"
	"github.com/heroiclabs/nakama/v3/internal/satori"
	"io"
	"net/http"
	"strconv"
@@ -43,6 +42,8 @@ import (
	"sync"
	"time"

	"github.com/heroiclabs/nakama/v3/internal/satori"

	"github.com/gofrs/uuid"
	jwt "github.com/golang-jwt/jwt/v4"
	"github.com/heroiclabs/nakama-common/api"
@@ -9785,7 +9786,7 @@ func (n *RuntimeLuaNakamaModule) satoriAuthenticate(l *lua.LState) int {

// @group satori
// @summary Get identity properties.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @return properties(type=table) The identity properties.
// @return error(error) An optional error value if an error occurred.
func (n *RuntimeLuaNakamaModule) satoriPropertiesGet(l *lua.LState) int {
@@ -9808,7 +9809,7 @@ func (n *RuntimeLuaNakamaModule) satoriPropertiesGet(l *lua.LState) int {

// @group satori
// @summary Update identity properties.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param properties(type=table) The identity properties to update.
// @return error(error) An optional error value if an error occurred.
func (n *RuntimeLuaNakamaModule) satoriPropertiesUpdate(l *lua.LState) int {
@@ -9869,7 +9870,7 @@ func (n *RuntimeLuaNakamaModule) satoriPropertiesUpdate(l *lua.LState) int {

// @group satori
// @summary Publish an event.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param events(type=table) An array of events to publish.
// @return error(error) An optional error value if an error occurred.
func (n *RuntimeLuaNakamaModule) satoriEventsPublish(l *lua.LState) int {
@@ -9966,7 +9967,7 @@ func (n *RuntimeLuaNakamaModule) satoriEventsPublish(l *lua.LState) int {

// @group satori
// @summary List experiments.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param names(type=table, optional=true, default=[]) Optional list of experiment names to filter.
// @return experiments(table) The experiment list.
// @return error(error) An optional error value if an error occurred.
@@ -10016,7 +10017,7 @@ func (n *RuntimeLuaNakamaModule) satoriExperimentsList(l *lua.LState) int {

// @group satori
// @summary List flags.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param names(type=table, optional=true, default=[]) Optional list of flag names to filter.
// @return flags(table) The flag list.
// @return error(error) An optional error value if an error occurred.
@@ -10067,7 +10068,7 @@ func (n *RuntimeLuaNakamaModule) satoriFlagsList(l *lua.LState) int {

// @group satori
// @summary List live events.
// @oaram id(type=string) The identifier of the identity.
// @param id(type=string) The identifier of the identity.
// @param names(type=table, optional=true, default=[]) Optional list of live event names to filter.
// @return liveEvents(table) The live event list.
// @return error(error) An optional error value if an error occurred.