services

package
v0.0.0-...-eacaf95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

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 (*AuthoizationService) Unary

type Event

type Event struct {
	Topic      string
	Connnector string
	Operation  string
}

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 Publisher

type Publisher interface {
	PublishToKafka(string, map[string][]byte, []byte)
}

type TopicService

type TopicService struct {
	// contains filtered or unexported fields
}

func NewTopicService

func NewTopicService(p Publisher, folder string) *TopicService

func (*TopicService) Publish

func (*TopicService) PublishStream

func (t *TopicService) PublishStream(stream proto.Topic_PublishStreamServer) error

func (*TopicService) StreamFile

func (t *TopicService) StreamFile(stream proto.Topic_StreamFileServer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL