Documentation
¶
Index ¶
- func MapCreateTopicPrototypeToDomain(topic *desc.CreateTopicsRequest_TopicPrototype) models.Topic
- func MapDomainTopicToProto(topic models.Topic) *desc.Topic
- func MapUpdateTopicPrototypeToUpdatedTopic(topic *desc.UpdateTopicsRequest_TopicPrototype) (models.UpdatedTopic, error)
- type Implementation
- func (i *Implementation) CreateTopics(ctx context.Context, req *desc.CreateTopicsRequest) (*desc.CreateTopicsResponse, error)
- func (i *Implementation) DeleteTopics(ctx context.Context, req *desc.DeleteTopicsRequest) (*desc.DeleteTopicsResponse, error)
- func (i *Implementation) GetTopics(ctx context.Context, req *desc.GetTopicsRequest) (*desc.GetTopicsResponse, error)
- func (i *Implementation) UpdateTopics(ctx context.Context, req *desc.UpdateTopicsRequest) (*desc.UpdateTopicsResponse, error)
- type TopicService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapCreateTopicPrototypeToDomain ¶
func MapCreateTopicPrototypeToDomain(topic *desc.CreateTopicsRequest_TopicPrototype) models.Topic
func MapUpdateTopicPrototypeToUpdatedTopic ¶
func MapUpdateTopicPrototypeToUpdatedTopic(topic *desc.UpdateTopicsRequest_TopicPrototype) (models.UpdatedTopic, error)
Types ¶
type Implementation ¶
type Implementation struct {
desc.UnimplementedTopicServiceServer
// contains filtered or unexported fields
}
func New ¶
func New(topicService TopicService) *Implementation
func (*Implementation) CreateTopics ¶
func (i *Implementation) CreateTopics( ctx context.Context, req *desc.CreateTopicsRequest, ) (*desc.CreateTopicsResponse, error)
func (*Implementation) DeleteTopics ¶
func (i *Implementation) DeleteTopics( ctx context.Context, req *desc.DeleteTopicsRequest, ) (*desc.DeleteTopicsResponse, error)
func (*Implementation) GetTopics ¶
func (i *Implementation) GetTopics( ctx context.Context, req *desc.GetTopicsRequest, ) (*desc.GetTopicsResponse, error)
func (*Implementation) UpdateTopics ¶
func (i *Implementation) UpdateTopics( ctx context.Context, req *desc.UpdateTopicsRequest, ) (*desc.UpdateTopicsResponse, error)
type TopicService ¶
Click to show internal directories.
Click to hide internal directories.