Documentation ¶
Index ¶
- func CreateService(nc *nats.Conn, s Service, opts *Options) (micro.Service, error)
- type Account
- type Deposit
- type Funds
- type Hold
- type Options
- type Service
- type ServiceWrapper
- func (s *ServiceWrapper) Account(r micro.Request)
- func (s *ServiceWrapper) Accounts(r micro.Request)
- func (s *ServiceWrapper) Deposit(r micro.Request)
- func (s *ServiceWrapper) Hold(r micro.Request)
- func (s *ServiceWrapper) NewAccount(r micro.Request)
- func (s *ServiceWrapper) Transfer(r micro.Request)
- type TestEnum
- type Transfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface { NewAccount(r micro.Request, ownerID uuid.UUID) Account(r micro.Request, ownerID uuid.UUID, accountID uuid.UUID) Accounts(r micro.Request, ownerID uuid.UUID) Deposit(r micro.Request, deposit Deposit) Transfer(r micro.Request, transfer Transfer) Hold(r micro.Request, hold Hold) }
type ServiceWrapper ¶
type ServiceWrapper struct {
Handler Service
}
func (*ServiceWrapper) Account ¶
func (s *ServiceWrapper) Account(r micro.Request)
func (*ServiceWrapper) Accounts ¶
func (s *ServiceWrapper) Accounts(r micro.Request)
func (*ServiceWrapper) Deposit ¶
func (s *ServiceWrapper) Deposit(r micro.Request)
func (*ServiceWrapper) Hold ¶
func (s *ServiceWrapper) Hold(r micro.Request)
func (*ServiceWrapper) NewAccount ¶
func (s *ServiceWrapper) NewAccount(r micro.Request)
func (*ServiceWrapper) Transfer ¶
func (s *ServiceWrapper) Transfer(r micro.Request)
Click to show internal directories.
Click to hide internal directories.