Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncodedImage ¶
type Generator ¶
type Generator interface {
Generate(avatar io.Reader, name, message string) (*EncodedImage, error)
}
type GrpcServer ¶
type GrpcServer struct { davinci.UnimplementedDavinciServer // contains filtered or unexported fields }
func NewGrpcServer ¶
func NewGrpcServer(token string, wg Generator, client *http.Client) *GrpcServer
func (*GrpcServer) SendWelcome ¶
func (s *GrpcServer) SendWelcome( ctx context.Context, req *davinci.WelcomeRequest, ) (*emptypb.Empty, error)
SendWelcome implements davinci.DavinciServer.
type WelcomeGenerator ¶
type WelcomeGenerator struct {
// contains filtered or unexported fields
}
func NewWelcomeGenerator ¶
func (*WelcomeGenerator) Generate ¶
func (g *WelcomeGenerator) Generate(avatar io.Reader, name, message string) (*EncodedImage, error)
Generate implements Generator.
Click to show internal directories.
Click to hide internal directories.