Documentation ¶
Index ¶
- func LoadEnvString(key string, defaultValue *string) *string
- func LoadEnvToStruct(prefix string, dest interface{}) error
- func LoadGBPConfigEnv() (gbpapi.GBPConfig, error)
- func LoadGCPOAuth2ConfigEnv() (oauth2.OAuth2Config, error)
- func LoadGCPPubsubConfigEnv() (*gcpPubsubConfig, error)
- func NewGBPConfigEnv(clientID string, secret string, refreshToken string) gbpapi.GBPConfig
- func NewGBPNotification(ctx context.Context, config gbpapi.GBPConfig) (*gbpNotification, error)
- func NewGCPOAuth2ConfigEnv(clientID string, secret string, refreshToken string, redirectURL string) oauth2.OAuth2Config
- func NewGCPPubsubConfigEnv(clientID string, secret string, refreshToken string, topic string, ...) gcpPubsubConfig
- func NewGCPPubsubPublisher(service *gcpPubsubService) *gcpPubsubPublisher
- func NewGCPPubsubService(ctx context.Context, config gcppubsub.GCPPubsubConfig) (*gcpPubsubService, error)
- func NewGCPPubsubSubscriber(service *gcpPubsubService) *gcpPubsubSubscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnvString ¶
* Load environment variables and convert to struct *
func LoadEnvToStruct ¶
* Load environment variables and convert to struct *
func LoadGBPConfigEnv ¶
func LoadGCPOAuth2ConfigEnv ¶
func LoadGCPOAuth2ConfigEnv() (oauth2.OAuth2Config, error)
func LoadGCPPubsubConfigEnv ¶
func LoadGCPPubsubConfigEnv() (*gcpPubsubConfig, error)
func NewGBPConfigEnv ¶
func NewGBPNotification ¶
func NewGCPOAuth2ConfigEnv ¶
func NewGCPPubsubConfigEnv ¶
func NewGCPPubsubPublisher ¶
func NewGCPPubsubPublisher(service *gcpPubsubService) *gcpPubsubPublisher
* GCP Pub/Sub Publisher *
func NewGCPPubsubService ¶
func NewGCPPubsubService(ctx context.Context, config gcppubsub.GCPPubsubConfig) (*gcpPubsubService, error)
* GCP Pub/Sub Service *
func NewGCPPubsubSubscriber ¶
func NewGCPPubsubSubscriber(service *gcpPubsubService) *gcpPubsubSubscriber
* GCP Pub/Sub Subscriber *
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.