# Functions
GenKey generates a unique key based on pulsar url and topic full name.
GetInitialPosition returns the initial position for subscription.
GetKeyFromNames generate topic key based on topic full name and pulsar url.
GetSubscriptionType converts string based subscription type to Pulsar subscription type.
IsURL evaluates if this is PulsarURL.
NewTopicConfig creates a topic configuration struct.
NewWebhookConfig creates a new webhook config.
StringToStatus converts status in string to Status type.
ValidateTopicConfig validates the TopicConfig and returns the key to identify this topic.
ValidateWebhookConfig validates WebhookConfig object I'd write explicit validation code rather than any off the shelf library, which are just DSL and sometime these library just like fit square peg in a round hole.
# Constants
Activated is the only active state.
Deactivated is the beginning state.
Deleted is the end of state.
.
Suspended is the state between Activated and Deleted.
# Structs
FunctionConfig is the function configuration.
FunctionTopic is the topic configurtion for function.
TopicConfig - a configuraion for topic and its webhook configuration.
TopicKey represents a struct to identify a topic.
WebhookConfig - a configuration for webhook.
# Type aliases
Status can be used for webhook status.