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
Click to show internal directories.
Click to hide internal directories.