matchmaking_rep

package
v0.0.0-...-237b7d6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

repositories @author LanguageY++2013 2022/11/7 18:59 @company soulgame

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchmakingRepository

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

媒人仓储

func NewMatchmakingRepository

func NewMatchmakingRepository(opts ...Option) *MatchmakingRepository

func (*MatchmakingRepository) AcceptMatch

func (rep *MatchmakingRepository) AcceptMatch(ctx context.Context, name string, ticketId string, acceptType open.AcceptanceType, playerIds []int64) (sgErr sgerrors.SGError)

func (*MatchmakingRepository) CheckConfiguration

func (rep *MatchmakingRepository) CheckConfiguration(conf *open.MatchmakingConfiguration) (sgErr error)

func (*MatchmakingRepository) DescribeMatchmaking

func (m *MatchmakingRepository) DescribeMatchmaking(ctx context.Context, ticketIds []string) (tickets []*open.MatchmakingTicket)

DescribeMatchmaking 票证信息查询

func (*MatchmakingRepository) MatchmakingConf

func (rep *MatchmakingRepository) MatchmakingConf(ctx context.Context, name string) (conf *open.MatchmakingConfiguration, sgErr error)

MatchmakingConf 媒介配置

func (*MatchmakingRepository) SaveConfiguration

SaveConfiguration 保存配置

func (*MatchmakingRepository) StartMatchmaking

func (rep *MatchmakingRepository) StartMatchmaking(ctx context.Context, name string, ticketId string, players []*open.MatchPlayer) (sgErr error)

StartMatchmaking 开始匹配

func (*MatchmakingRepository) StopMatchmaking

func (rep *MatchmakingRepository) StopMatchmaking(ctx context.Context, ticketId string) (sgErr error)

StopMatchmaking 取消匹配 (是否成功依据取消事件,而不是当前返回)

type Option

type Option func(rep *MatchmakingRepository)

可选项

func WithConfPath

func WithConfPath(path string) Option

WithConfPath 指定配置路径

Jump to

Keyboard shortcuts

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