utils

package
v0.0.0-...-c1868ec Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAndWriteData

func FormatAndWriteData(ctx echo.Context, statusMessage int, data protoreflect.ProtoMessage) error

func FoundOccurenceInSlice

func FoundOccurenceInSlice(slice []interface{}, data interface{}) bool

func ReturnFriendRequestTypeFunction

func ReturnFriendRequestTypeFunction() func(string) int32

func ReturnPartyRedisKey

func ReturnPartyRedisKey(playerID, partyID string) string

func ReturnPlayerAndPartyFromRedisKey

func ReturnPlayerAndPartyFromRedisKey(partyKey string) (playerID, partyID string)

func ReturnPlayerIDFromRedisKey

func ReturnPlayerIDFromRedisKey(redisKey string) string

func ReturnPlayerRedisKey

func ReturnPlayerRedisKey(playerID string) string

func UnmarshalDataFromEcho

func UnmarshalDataFromEcho(ctx echo.Context, data protoreflect.ProtoMessage) error

func ValidatePlayerAndFriendUUID

func ValidatePlayerAndFriendUUID(ctx context.Context, player, friend string) (bool, []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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