game_context

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameContext

type GameContext struct {
	// contains filtered or unexported fields
}

GameContext は、機能によらずアプリケーション横断的なコンテキストを提供します。

func NewGameContext

func NewGameContext(idempotencyKey uuid.UUID, now time.Time) GameContext

func (GameContext) IdempotencyKey

func (c GameContext) IdempotencyKey() uuid.UUID

IdempotencyKey はトランザクションの冪等性を保証するために利用される、一意な識別子です。 https://developer.mozilla.org/ja/docs/Glossary/Idempotent

func (GameContext) JSON

func (c GameContext) JSON() map[string]interface{}

func (GameContext) MarshalJSON

func (c GameContext) MarshalJSON() ([]byte, error)

func (GameContext) Now

func (c GameContext) Now() time.Time

Jump to

Keyboard shortcuts

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