Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents GRPC mailer client which is responsible for sending messages to the provided subscribers. from parameter is author of the message, which is hard-coded on structure creation.
func NewClient ¶
NewClient constructs a GRPC mailer client with provided arguments. Under the hood it initializes a bunch of GRPC middleware for debugging and monitoring purposes. I.E: - retry middleware - request logger middleware If initialization of connection has failed it will return an error. NOTE: neither of parameters couldn't be nil or client will panic.
Click to show internal directories.
Click to hide internal directories.