dynamodb

package
v0.0.0-...-3796b3f Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	Workspace  string `json:"workspace"`
	UserId     string `json:"user_id"`
	GameName   string `json:"game_name"`
	ServerIP   string `json:"server_ip"`
	InstanceId string `json:"instance_id"`
}

type DynamoDBService

type DynamoDBService struct {
	Client *dynamodb.DynamoDB
}

func InitializeDynamoDB

func InitializeDynamoDB() (*DynamoDBService, error)

func (*DynamoDBService) GetDetailsBySessionID

func (svc *DynamoDBService) GetDetailsBySessionID(sessionID string) (Details, error)

func (*DynamoDBService) GetSessionsBasedOnStatus

func (svc *DynamoDBService) GetSessionsBasedOnStatus(userID string, status string) ([]models.Session, error)

func (*DynamoDBService) SaveSession

func (svc *DynamoDBService) SaveSession(sessModel models.Session) error

func (*DynamoDBService) UpdateSessionStatusAndIP

func (svc *DynamoDBService) UpdateSessionStatusAndIP(sessionID, status, serverIP string) error

func (*DynamoDBService) UpdateSessionStatusIPAndInstance

func (svc *DynamoDBService) UpdateSessionStatusIPAndInstance(sessionID, status, serverIP, instanceID string) error

Jump to

Keyboard shortcuts

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