Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CRED-CLUB/propeller
/ functions
Functions
436 in github.com/CRED-CLUB/propeller
⨍
Functions
436
◇
Types & classes
104
↓ 109 callers
Function
Ctx
Ctx gets logger instance from context if available else returns default.
pkg/logger/logger.go:98
↓ 48 callers
Function
Newf
Newf returns a perror with code and a formatted message
internal/perror/perror.go:40
↓ 23 callers
Function
file_push_v1_api_proto_rawDescGZIP
()
rpc/push/v1/api.pb.go:1666
↓ 16 callers
Function
New
New returns a perror with code and a message
internal/perror/perror.go:35
↓ 15 callers
Function
ToGRPCError
ToGRPCError converts perror to grpc status error
internal/perror/perror.go:27
↓ 11 callers
Method
String
()
rpc/push/v1/api.pb.go:1232
↓ 9 callers
Method
Send
Send ...
internal/component/apiserver/websocket_handler.go:52
↓ 7 callers
Method
Load
(ctx context.Context, key string)
internal/kv/kv.go:14
↓ 7 callers
Method
Store
(ctx context.Context, key string, field string, attrs string)
internal/kv/kv.go:13
↓ 7 callers
Function
WithContext
WithContext returns an instance of the logger with the supplied context populated
pkg/logger/logger.go:77
↓ 6 callers
Method
Get
Get value for a key
pkg/broker/nats/kv.go:47
↓ 6 callers
Method
GetEvent
()
rpc/push/v1/api.pb.go:371
↓ 6 callers
Method
GetName
()
rpc/push/v1/api.pb.go:1255
↓ 6 callers
Method
Publish
(ctx context.Context, publishRequest PublishRequest)
internal/pubsub/pubsub.go:17
↓ 5 callers
Method
Context
Context ...
internal/component/apiserver/websocket_handler.go:69
↓ 5 callers
Method
Delete
(ctx context.Context, key string, fields ...string)
internal/kv/kv.go:15
↓ 5 callers
Method
GetData
()
rpc/push/v1/api.pb.go:1269
↓ 5 callers
Method
GetResponse
()
rpc/push/v1/api.pb.go:232
↓ 4 callers
Method
Channel
Establish channel
rpc/push/v1/api_grpc.pb.go:37
↓ 4 callers
Method
GetClientActiveDevices
GetClientActiveDevices is called to get active devices of a client
rpc/push/v1/api_grpc.pb.go:47
↓ 4 callers
Method
GetRequest
()
rpc/push/v1/api.pb.go:119
↓ 4 callers
Method
GetTopic
()
rpc/push/v1/api.pb.go:364
↓ 4 callers
Method
PublishToTopic
PublishToTopic publishes to the topic
internal/push/service.go:250
↓ 4 callers
Method
ReadFile
(filePath string)
pkg/fs/fs.go:22
↓ 4 callers
Method
Subscribe
(ctx context.Context, channel string)
pkg/broker/nats/nats.go:16
↓ 3 callers
Method
AddSubscription
(ctx context.Context, subject string, subs *subscription.Subscription)
internal/pubsub/pubsub.go:21
↓ 3 callers
Method
Build
Build maven
tools/prototool/java/maven/maven.go:68
↓ 3 callers
Method
GetClientId
()
rpc/push/v1/api.pb.go:727
↓ 3 callers
Function
GetDummyEvent
GetDummyEvent returns dummy event
internal/dummy/dummy.go:17
↓ 3 callers
Method
GetTopicEventChan
()
pkg/broker/subscription.go:5
↓ 3 callers
Method
LoadAndDelete
LoadAndDelete the subscription
internal/pubsub/pubsub.go:78
↓ 3 callers
Function
NewContext
NewContext adds core key-value e.g. component name, git hash etc to existing context or to a new background context and returns.
internal/boot/boot.go:18
↓ 3 callers
Function
NewLogger
NewLogger sets up an instance of the sugared zap logging driver
pkg/logger/logger.go:26
↓ 3 callers
Method
Publish
(ctx context.Context, publishRequest PublishRequest)
pkg/broker/nats/nats.go:15
↓ 3 callers
Method
SendEventToClientChannel
SendEventToClientChannel is called to send event to a client
rpc/push/v1/api_grpc.pb.go:39
↓ 3 callers
Method
SendEventToClientDeviceChannel
SendEventToClientDeviceChannel is called to send event to a client device
rpc/push/v1/api_grpc.pb.go:41
↓ 3 callers
Method
SendEventToTopic
SendEventToTopic is called to send event to a topic
rpc/push/v1/api_grpc.pb.go:43
↓ 3 callers
Method
SendEventToTopics
SendEventToTopics is called to send event to multiple topics
rpc/push/v1/api_grpc.pb.go:45
↓ 3 callers
Method
UnSubscribe
(ctx context.Context, s broker.ISubscription)
pkg/broker/nats/nats.go:17
↓ 3 callers
Method
Unsubscribe
(ctx context.Context, subs *subscription.Subscription)
internal/pubsub/pubsub.go:20
↓ 3 callers
Function
getDummyJSONBytes
()
internal/push/model.go:155
↓ 2 callers
Method
AsyncSubscribe
(ctx context.Context, subject ...string)
internal/pubsub/pubsub.go:19
↓ 2 callers
Function
Execute
Execute the command
pkg/process/process.go:8
↓ 2 callers
Method
GetChannelEvent
()
rpc/push/v1/api.pb.go:126
↓ 2 callers
Function
InitLogging
InitLogging initialises the logger
internal/boot/boot.go:27
↓ 2 callers
Method
Load
Load values for a key
internal/kv/nats.go:64
↓ 2 callers
Function
NewNATSClient
NewNATSClient returns a NATS client
internal/broker/broker.go:11
↓ 2 callers
Function
NewRedisClient
NewRedisClient returns a redis client
internal/broker/broker.go:30
↓ 2 callers
Method
PopulateFromProto
PopulateFromProto maps model from proto
internal/push/model.go:94
↓ 2 callers
Method
Publish
(ctx context.Context, publishRequest PublishRequest)
pkg/broker/redis/redis.go:16
↓ 2 callers
Method
PublishBulk
(ctx context.Context, publishRequest []PublishRequest)
internal/pubsub/pubsub.go:18
↓ 2 callers
Method
PublishToClient
PublishToClient publishes to the client
internal/push/service.go:186
↓ 2 callers
Method
PublishToClientWithDevice
PublishToClientWithDevice publishes to the client with device
internal/push/service.go:215
↓ 2 callers
Method
Recv
Recv ...
internal/component/apiserver/websocket_handler.go:57
↓ 2 callers
Method
RemoveSubscription
(ctx context.Context, subject string, subs *subscription.Subscription)
internal/pubsub/pubsub.go:22
↓ 2 callers
Method
Start
Start the component, it should be implemented as a blocking call method should return gracefully when ctx is Done
internal/component/component.go:9
↓ 2 callers
Method
Subscribe
(ctx context.Context, channel ...string)
pkg/broker/redis/redis.go:18
↓ 2 callers
Method
WriteFile
(filePath string, permission os.FileMode, contents []byte)
pkg/fs/fs.go:21
↓ 2 callers
Function
isAncestor
isAncestor
pkg/fs/fs.go:219
↓ 2 callers
Method
removeSubscription
(ctx context.Context, v interface{})
internal/pubsub/nats.go:127
↓ 2 callers
Method
start
(ctx context.Context, channels ...string)
pkg/broker/redis/streams.go:118
↓ 2 callers
Method
validateSendEventToTopicRequest
(req SendEventToTopicRequest)
internal/push/service.go:266
↓ 1 callers
Function
AppendServiceKV
AppendServiceKV attaches service's core information which should exist in each log.
pkg/logger/logger.go:68
↓ 1 callers
Method
AsyncClientSubscribe
AsyncClientSubscribe to the client
internal/push/service.go:299
↓ 1 callers
Method
BuildAndPublish
BuildAndPublish ...
tools/prototool/java/handler.go:27
↓ 1 callers
Method
Cd
(dir string)
pkg/fs/fs.go:33
↓ 1 callers
Method
ClientUnsubscribe
ClientUnsubscribe unsubscribes a client
internal/push/service.go:359
↓ 1 callers
Function
Close
Close ...
internal/boot/boot.go:41
↓ 1 callers
Method
ConfirmEventReceipt
ConfirmEventReceipt is just used for instrumentation
internal/push/service.go:417
↓ 1 callers
Method
CreateDir
(dirPath string, permission os.FileMode, forceCreate bool)
pkg/fs/fs.go:16
↓ 1 callers
Method
CreateKeyValue
CreateKeyValue for NATS
pkg/broker/nats/kv.go:17
↓ 1 callers
Method
Descriptor
()
rpc/push/v1/api.pb.go:57
↓ 1 callers
Method
Descriptor
Deprecated: Use Event.ProtoReflect.Descriptor instead.
rpc/push/v1/api.pb.go:1251
↓ 1 callers
Method
GetDeviceId
()
rpc/push/v1/api.pb.go:953
↓ 1 callers
Function
GetGitHash
GetGitHash returns the git hash
internal/boot/boot.go:12
↓ 1 callers
Method
GetTopicSubscriptionRequest
()
rpc/push/v1/api.pb.go:140
↓ 1 callers
Method
GetTopicUnsubscriptionRequest
()
rpc/push/v1/api.pb.go:147
↓ 1 callers
Method
HGetAll
HGetAll returns all values map for a key
pkg/broker/redis/redis.go:114
↓ 1 callers
Method
HSet
HSet set key with values
pkg/broker/redis/redis.go:103
↓ 1 callers
Method
HandleReceivedPayload
HandleReceivedPayload handles the received requests from the client
internal/component/apiserver/grpc_handler.go:296
↓ 1 callers
Method
Init
Init maven
tools/prototool/java/maven/maven.go:47
↓ 1 callers
Method
InitGRPCServer
InitGRPCServer with handlers and interceptors
internal/grpcserver/server.go:45
↓ 1 callers
Method
InterpolateLocalSettings
InterpolateLocalSettings ...
tools/prototool/java/maven/interpolate.go:50
↓ 1 callers
Method
InterpolatePom
InterpolatePom ...
tools/prototool/java/maven/interpolate.go:70
↓ 1 callers
Method
IsDeviceValidationMessage
IsDeviceValidationMessage checks if the message is device validation message
internal/push/service.go:409
↓ 1 callers
Function
MapToSliceOfKV
MapToSliceOfKV ...
pkg/logger/logger.go:107
↓ 1 callers
Function
NewAPIServer
NewAPIServer returns a component instance
internal/component/api_server_component.go:26
↓ 1 callers
Function
NewConfig
NewConfig returns new config struct.
pkg/config/config.go:80
↓ 1 callers
Function
NewDefaultOptions
NewDefaultOptions returns default options. DISCLAIMER: This function is a bit hacky This function expects an env $WORKDIR to be set and reads configs
pkg/config/config.go:57
↓ 1 callers
Function
NewGrpc
NewGrpc returns a GrpcServer
internal/grpcserver/server.go:22
↓ 1 callers
Function
NewHandler
NewHandler ...
tools/prototool/java/handler.go:18
↓ 1 callers
Function
NewInterpolator
NewInterpolator ...
tools/prototool/java/maven/interpolate.go:21
↓ 1 callers
Function
NewMaven
NewMaven ...
tools/prototool/java/maven/maven.go:35
↓ 1 callers
Function
NewNats
NewNats returns NATS kv client
internal/kv/nats.go:20
↓ 1 callers
Function
NewNats
NewNats returns nats
internal/pubsub/nats.go:23
↓ 1 callers
Function
NewOptions
NewOptions returns new Options struct.
pkg/config/config.go:70
↓ 1 callers
Function
NewPushServer
NewPushServer returns the web server for push
internal/component/apiserver/grpc_handler.go:21
↓ 1 callers
Function
NewRedis
NewRedis returns redis kv client
internal/kv/redis.go:15
↓ 1 callers
Function
NewRedis
NewRedis returns redis
internal/pubsub/redis.go:22
↓ 1 callers
Function
NewService
NewService returns a new instance of Service
internal/push/service.go:35
next →
1–100 of 436, ranked by callers