Documentation ¶
Index ¶
- type Train
- func (t *Train) BuyTicket(ctx context.Context, payloadd types.BuyTicket) (*types.Ticket, error)
- func (t *Train) ChangeTicket(ctx context.Context, payload types.ChangeTicket) (*types.Ticket, error)
- func (t *Train) GetValidator() validator.JWTValidator
- func (t *Train) Login(ctx context.Context, email, password string) (*types.LoginResponse, error)
- func (t *Train) RemoveTicket(ctx context.Context, payload types.RemoveTicket) error
- func (t *Train) TicketByID(ctx context.Context, ticketID string) (*types.Ticket, error)
- func (t *Train) TrainDetails(ctx context.Context) (*types.TrainDetails, error)
- func (t *Train) TrainNextOpenSeat(ctx context.Context) (*types.TrainOpenSeatsResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Train ¶
type Train struct {
// contains filtered or unexported fields
}
func NewFromEnvironment ¶
func (*Train) ChangeTicket ¶
func (*Train) GetValidator ¶
func (t *Train) GetValidator() validator.JWTValidator
func (*Train) RemoveTicket ¶
func (*Train) TicketByID ¶
func (*Train) TrainDetails ¶
func (*Train) TrainNextOpenSeat ¶
Click to show internal directories.
Click to hide internal directories.