Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventHubSaramaConfig ¶ added in v1.0.0
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
func NewBatch ¶
func NewBatch(t *FortuneTeller, p Publisher) *Batch
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, request *m.CompletionRequest) (*m.CompletionResponse, error)
type FortuneTeller ¶
type FortuneTeller struct {
// contains filtered or unexported fields
}
func NewFortuneTeller ¶
func NewFortuneTeller(client *Client, temperature float32) *FortuneTeller
type Result ¶
type Result struct { Rank int32 `json:"rank"` Name string `json:"name"` LuckyItem string `json:"lucky_item"` LuckyColor string `json:"lucky_color"` LuckyService string `json:"lucky_service"` CareerLuck int32 `json:"career_luck"` LoveLuck int32 `json:"love_luck"` HealthLuck int32 `json:"health_luck"` Description string `json:"description"` CreatedAt time.Time `json:"created_at"` }
type SaramaPublisher ¶ added in v1.0.0
type SaramaPublisher struct {
// contains filtered or unexported fields
}
func NewSaramaPublisher ¶ added in v1.0.0
func NewSaramaPublisher(c sarama.SyncProducer, topicName string) *SaramaPublisher
Click to show internal directories.
Click to hide internal directories.