Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthoizationService ¶
type AuthoizationService struct {
// contains filtered or unexported fields
}
func NewAuthoizationService ¶
func NewAuthoizationService(clientId, clientSecret, validAudiences, issuer string, serviceRoleMapping map[string][]string) *AuthoizationService
func (*AuthoizationService) Stream ¶
func (a *AuthoizationService) Stream() grpc.StreamServerInterceptor
func (*AuthoizationService) Unary ¶
func (a *AuthoizationService) Unary() grpc.UnaryServerInterceptor
type JwtClaims ¶
type JwtClaims struct { AuthorizedParty string `json:"azp,omitempty"` jwt.StandardClaims }
type KafkaPublisherService ¶
type KafkaPublisherService struct {
// contains filtered or unexported fields
}
func NewKafkaPublisherService ¶
func NewKafkaPublisherService(brokerUrl string) *KafkaPublisherService
func (*KafkaPublisherService) PublishToKafka ¶
func (p *KafkaPublisherService) PublishToKafka(topic string, headers map[string][]byte, message []byte)
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func GetOrCreateMemoryStore ¶
func GetOrCreateMemoryStore() *MemoryStore
func (*MemoryStore) AddRemoveTopic ¶
func (m *MemoryStore) AddRemoveTopic(event Event)
func (*MemoryStore) IsTopicRegistered ¶
func (m *MemoryStore) IsTopicRegistered(topic string) bool
type MockPublisher ¶
type MockPublisher struct { }
func (*MockPublisher) PublishToKafka ¶
func (p *MockPublisher) PublishToKafka(topic string, headers map[string][]byte, message []byte)
type TopicService ¶
type TopicService struct {
// contains filtered or unexported fields
}
func NewTopicService ¶
func NewTopicService(p Publisher, folder string) *TopicService
func (*TopicService) Publish ¶
func (t *TopicService) Publish(ctx context.Context, req *proto.PublishRequest) (*proto.PublishResponse, error)
func (*TopicService) PublishStream ¶
func (t *TopicService) PublishStream(stream proto.Topic_PublishStreamServer) error
func (*TopicService) StreamFile ¶
func (t *TopicService) StreamFile(stream proto.Topic_StreamFileServer) error
Click to show internal directories.
Click to hide internal directories.