Documentation ¶
Index ¶
- type AddRollInput
- type AddRollOutput
- type AddRollsInput
- type AddRollsOutput
- type AddSessionRollInput
- type AddSessionRollOutput
- type AssignDrinkInput
- type AssignDrinkOutput
- type CreateGameInput
- type CreateGameOutput
- type CreateSessionInput
- type CreateSessionOutput
- type CreateSessionRollInput
- type CreateSessionRollOutput
- type GetSessionInput
- type GetSessionOutput
- type GetSessionRollInput
- type GetSessionRollOutput
- type GetTabInput
- type GetTabOutput
- type Interface
- type JoinGameInput
- type JoinGameOutput
- type JoinSessionInput
- type JoinSessionOutput
- type ListTabsInput
- type ListTabsOutput
- type Manager
- func (m *Manager) AddRoll(ctx context.Context, input *AddRollInput) (*AddRollOutput, error)
- func (m *Manager) AddRolls(ctx context.Context, input *AddRollsInput) (*AddRollsOutput, error)
- func (m *Manager) AddSessionRoll(ctx context.Context, input *AddSessionRollInput) (*AddSessionRollOutput, error)
- func (m *Manager) AssignDrink(ctx context.Context, input *AssignDrinkInput) (*AssignDrinkOutput, error)
- func (m *Manager) CreateGame(ctx context.Context, input *CreateGameInput) (*CreateGameOutput, error)
- func (m *Manager) CreateSession(ctx context.Context, input *CreateSessionInput) (*CreateSessionOutput, error)
- func (m *Manager) CreateSessionRoll(ctx context.Context, input *CreateSessionRollInput) (*CreateSessionRollOutput, error)
- func (m *Manager) GetSession(ctx context.Context, input *GetSessionInput) (*GetSessionOutput, error)
- func (m *Manager) GetSessionRoll(ctx context.Context, input *GetSessionRollInput) (*GetSessionRollOutput, error)
- func (m *Manager) GetTab(ctx context.Context, input *GetTabInput) (*GetTabOutput, error)
- func (m *Manager) JoinGame(ctx context.Context, input *JoinGameInput) (*JoinGameOutput, error)
- func (m *Manager) JoinSession(ctx context.Context, input *JoinSessionInput) (*JoinSessionOutput, error)
- func (m *Manager) ListTabs(ctx context.Context, input *ListTabsInput) (*ListTabsOutput, error)
- func (m *Manager) PayDrink(ctx context.Context, input *PayDrinkInput) (*PayDrinkOutput, error)
- func (m *Manager) UpdateSession(ctx context.Context, input *UpdateSessionInput) (*UpdateSessionOutput, error)
- func (m *Manager) UpdateSessionRoll(ctx context.Context, input *UpdateSessionRollInput) (*UpdateSessionRollOutput, error)
- type ManagerConfig
- type PayDrinkInput
- type PayDrinkOutput
- type RollResult
- type UpdateSessionInput
- type UpdateSessionOutput
- type UpdateSessionRollInput
- type UpdateSessionRollOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRollInput ¶
type AddRollOutput ¶
type AddRollsInput ¶
type AddRollsOutput ¶
type AddRollsOutput struct { Results []*RollResult Success bool }
type AddSessionRollInput ¶
type AddSessionRollOutput ¶
type AddSessionRollOutput struct {
SessionEntry *ronnied.SessionEntry
}
type AssignDrinkInput ¶
type AssignDrinkOutput ¶
type AssignDrinkOutput struct{}
type CreateGameInput ¶
type CreateGameOutput ¶
type CreateSessionInput ¶
type CreateSessionInput struct {
GameID string
}
type CreateSessionOutput ¶
type CreateSessionRollInput ¶
type CreateSessionRollOutput ¶
type CreateSessionRollOutput struct {
SessionRoll *ronnied.SessionRoll
}
type GetSessionInput ¶
type GetSessionInput struct {
SessionID string
}
type GetSessionOutput ¶
type GetSessionRollInput ¶
type GetSessionRollInput struct {
SessionRollID string
}
type GetSessionRollOutput ¶
type GetSessionRollOutput struct {
SessionRoll *ronnied.SessionRoll
}
type GetTabInput ¶
type GetTabOutput ¶
type GetTabOutput struct {
Count int
}
type Interface ¶
type Interface interface { JoinGame(ctx context.Context, input *JoinGameInput) (*JoinGameOutput, error) AddRoll(ctx context.Context, input *AddRollInput) (*AddRollOutput, error) AddRolls(ctx context.Context, input *AddRollsInput) (*AddRollsOutput, error) GetTab(ctx context.Context, input *GetTabInput) (*GetTabOutput, error) ListTabs(ctx context.Context, input *ListTabsInput) (*ListTabsOutput, error) PayDrink(ctx context.Context, input *PayDrinkInput) (*PayDrinkOutput, error) CreateSession(ctx context.Context, input *CreateSessionInput) (*CreateSessionOutput, error) UpdateSession(ctx context.Context, input *UpdateSessionInput) (*UpdateSessionOutput, error) JoinSession(ctx context.Context, input *JoinSessionInput) (*JoinSessionOutput, error) AddSessionRoll(ctx context.Context, input *AddSessionRollInput) (*AddSessionRollOutput, error) CreateSessionRoll(ctx context.Context, input *CreateSessionRollInput) (*CreateSessionRollOutput, error) UpdateSessionRoll(ctx context.Context, input *UpdateSessionRollInput) (*UpdateSessionRollOutput, error) GetSessionRoll(ctx context.Context, input *GetSessionRollInput) (*GetSessionRollOutput, error) GetSession(ctx context.Context, input *GetSessionInput) (*GetSessionOutput, error) AssignDrink(ctx context.Context, input *AssignDrinkInput) (*AssignDrinkOutput, error) }
type JoinGameInput ¶
type JoinGameOutput ¶
type JoinGameOutput struct { }
type JoinSessionInput ¶
type JoinSessionOutput ¶
type JoinSessionOutput struct { Session *ronnied.Session SessionRoll *ronnied.SessionRoll }
type ListTabsInput ¶
type ListTabsInput struct {
GameID string
}
type ListTabsOutput ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(cfg *ManagerConfig) (*Manager, error)
func (*Manager) AddRoll ¶
func (m *Manager) AddRoll(ctx context.Context, input *AddRollInput) (*AddRollOutput, error)
func (*Manager) AddRolls ¶
func (m *Manager) AddRolls(ctx context.Context, input *AddRollsInput) (*AddRollsOutput, error)
func (*Manager) AddSessionRoll ¶
func (m *Manager) AddSessionRoll(ctx context.Context, input *AddSessionRollInput) (*AddSessionRollOutput, error)
func (*Manager) AssignDrink ¶
func (m *Manager) AssignDrink(ctx context.Context, input *AssignDrinkInput) (*AssignDrinkOutput, error)
func (*Manager) CreateGame ¶
func (m *Manager) CreateGame(ctx context.Context, input *CreateGameInput) (*CreateGameOutput, error)
func (*Manager) CreateSession ¶
func (m *Manager) CreateSession(ctx context.Context, input *CreateSessionInput) (*CreateSessionOutput, error)
func (*Manager) CreateSessionRoll ¶
func (m *Manager) CreateSessionRoll(ctx context.Context, input *CreateSessionRollInput) (*CreateSessionRollOutput, error)
func (*Manager) GetSession ¶
func (m *Manager) GetSession(ctx context.Context, input *GetSessionInput) (*GetSessionOutput, error)
func (*Manager) GetSessionRoll ¶
func (m *Manager) GetSessionRoll(ctx context.Context, input *GetSessionRollInput) (*GetSessionRollOutput, error)
func (*Manager) GetTab ¶
func (m *Manager) GetTab(ctx context.Context, input *GetTabInput) (*GetTabOutput, error)
func (*Manager) JoinGame ¶
func (m *Manager) JoinGame(ctx context.Context, input *JoinGameInput) (*JoinGameOutput, error)
func (*Manager) JoinSession ¶
func (m *Manager) JoinSession(ctx context.Context, input *JoinSessionInput) (*JoinSessionOutput, error)
func (*Manager) ListTabs ¶
func (m *Manager) ListTabs(ctx context.Context, input *ListTabsInput) (*ListTabsOutput, error)
func (*Manager) PayDrink ¶
func (m *Manager) PayDrink(ctx context.Context, input *PayDrinkInput) (*PayDrinkOutput, error)
func (*Manager) UpdateSession ¶
func (m *Manager) UpdateSession(ctx context.Context, input *UpdateSessionInput) (*UpdateSessionOutput, error)
func (*Manager) UpdateSessionRoll ¶
func (m *Manager) UpdateSessionRoll(ctx context.Context, input *UpdateSessionRollInput) (*UpdateSessionRollOutput, error)
type ManagerConfig ¶
type PayDrinkInput ¶
type PayDrinkOutput ¶
type PayDrinkOutput struct {
TabRemaining int
}
type RollResult ¶
type UpdateSessionInput ¶
type UpdateSessionOutput ¶
type UpdateSessionRollInput ¶
type UpdateSessionRollInput struct {
SessionRoll *ronnied.SessionRoll
}
type UpdateSessionRollOutput ¶
type UpdateSessionRollOutput struct {
SessionRoll *ronnied.SessionRoll
}
Click to show internal directories.
Click to hide internal directories.