Documentation ¶
Index ¶
- func MustNewServiceServer(address string) common.Service
- func NewServiceServer(address string) (common.Service, error)
- func RegisterService(s common.Service, srv Service)
- func RegisterSubscriber(s common.Service, subscriber Subscriptions, pubsubName string)
- type Message
- type Service
- type ServiceClient
- type Subscriptions
- type UserRegisteredEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewServiceServer ¶ added in v0.8.1
func RegisterService ¶ added in v0.4.0
func RegisterSubscriber ¶ added in v0.3.0
func RegisterSubscriber(s common.Service, subscriber Subscriptions, pubsubName string)
Types ¶
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
func NewServiceClient ¶
func NewServiceClient(appID string) (*ServiceClient, error)
func (*ServiceClient) SomethingWrong ¶ added in v0.5.0
func (c *ServiceClient) SomethingWrong(ctx context.Context) (*Message, error)
type Subscriptions ¶
type Subscriptions interface {
SendEmail(ctx context.Context, event UserRegisteredEvent) (bool, error)
}
type UserRegisteredEvent ¶
type UserRegisteredEvent struct {
Email string
}
Click to show internal directories.
Click to hide internal directories.