Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dionysia-dev/dionysia
/ functions
Functions
106 in github.com/dionysia-dev/dionysia
⨍
Functions
106
◇
Types & classes
45
↓ 7 callers
Method
GetInput
(context.Context, uuid.UUID)
internal/service/input.go:47
↓ 5 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mocks/store.go:39
↓ 5 callers
Function
NewMockInputStore
NewMockInputStore creates a new mock instance.
internal/mocks/store.go:32
↓ 4 callers
Method
Get
(context.Context, uuid.UUID)
internal/service/routing.go:11
↓ 4 callers
Function
HandleValidationError
HandleValidationError validate and handle errors of structs that has `validator/v10` rules
internal/api/response.go:31
↓ 4 callers
Function
NewInputHandler
(store db.InputStore)
internal/service/input.go:56
↓ 3 callers
Method
CreateInput
(context.Context, *Input)
internal/service/input.go:46
↓ 3 callers
Method
DeleteInput
(context.Context, uuid.UUID)
internal/service/input.go:48
↓ 3 callers
Method
Enqueue
(*asynq.Task, ...asynq.Option)
internal/queue/client.go:9
↓ 3 callers
Method
Execute
()
internal/service/command.go:106
↓ 3 callers
Function
NewPackageTask
(id uuid.UUID, input Input, cfg *config.Config)
internal/service/packaging.go:26
↓ 3 callers
Method
PackageStream
(context.Context, uuid.UUID)
internal/service/notification.go:14
↓ 3 callers
Method
Update
(context.Context, Origin)
internal/service/routing.go:10
↓ 2 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mocks/queue.go:37
↓ 2 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mocks/routing.go:39
↓ 2 callers
Function
FromInput
(input service.Input)
internal/api/request.go:46
↓ 2 callers
Method
Get
(ctx context.Context, id uuid.UUID)
internal/db/redistore/store.go:51
↓ 2 callers
Function
NewMockClient
NewMockClient creates a new mock instance.
internal/mocks/queue.go:30
↓ 2 callers
Function
NewMockOriginStore
NewMockOriginStore creates a new mock instance.
internal/mocks/routing.go:32
↓ 2 callers
Function
NewNotificationHandler
(c queue.Client, store db.InputStore, cfg *config.Config)
internal/service/notification.go:23
↓ 2 callers
Function
NewOriginHandler
(store OriginStore)
internal/service/routing.go:28
↓ 2 callers
Method
Update
Update updates the origin in the store with the given ttl. It uses a lua script to ensure that the origin is only updated if the address (value) is th
internal/db/redistore/store.go:29
↓ 1 callers
Method
Authenticate
(context.Context, IngestAuth)
internal/service/input.go:49
↓ 1 callers
Method
Build
(id, address, output string, input Input)
internal/service/command.go:77
↓ 1 callers
Method
CreateInput
(context.Context, *model.Input)
internal/db/store.go:17
↓ 1 callers
Method
DeleteInput
(context.Context, uuid.UUID)
internal/db/store.go:19
↓ 1 callers
Function
Execute
()
cmd/root.go:25
↓ 1 callers
Function
FromOrigin
(origin service.Origin)
internal/api/request.go:107
↓ 1 callers
Method
Get
(context.Context, uuid.UUID)
internal/service/routing.go:21
↓ 1 callers
Method
GetInput
(context.Context, uuid.UUID)
internal/db/store.go:18
↓ 1 callers
Function
HandleStreamPackageTask
(_ context.Context, t *asynq.Task)
internal/service/packaging.go:40
↓ 1 callers
Function
NewAPICmd
()
cmd/api.go:18
↓ 1 callers
Function
NewClient
(cfg *config.Config)
internal/db/redistore/client.go:8
↓ 1 callers
Function
NewDefaultCommandConfig
()
internal/service/command.go:22
↓ 1 callers
Function
NewGPACCommand
(id, address, output string, input Input)
internal/service/command.go:139
↓ 1 callers
Function
NewGPACCommandBuilder
(config *CommandConfig)
internal/service/command.go:73
↓ 1 callers
Function
NewInputController
(inputHandler service.InputHandler)
internal/api/controller.go:23
↓ 1 callers
Function
NewNotificationController
(nh service.NotificationHandler)
internal/api/controller.go:175
↓ 1 callers
Function
NewOriginController
(oh service.OriginHandler)
internal/api/controller.go:212
↓ 1 callers
Function
NewOriginStore
(client *redis.Client, cfg *config.Config)
internal/db/redistore/store.go:17
↓ 1 callers
Function
NewPlayoutServer
()
cmd/playout.go:13
↓ 1 callers
Function
NewRootCmd
()
cmd/root.go:10
↓ 1 callers
Function
NewWorker
()
cmd/worker.go:15
↓ 1 callers
Method
ToInput
()
internal/api/request.go:16
↓ 1 callers
Method
ToOrigin
()
internal/api/request.go:100
↓ 1 callers
Method
Update
(context.Context, Origin)
internal/service/routing.go:20
↓ 1 callers
Function
migrate
(db *gorm.DB)
internal/db/migrate.go:8
Method
Authenticate
(ctx context.Context, authData IngestAuth)
internal/service/input.go:136
Method
Authenticate
(ctx *gin.Context)
internal/api/controller.go:133
Method
CreateInput
CreateInput mocks base method.
internal/mocks/store.go:44
Method
CreateInput
CreateInput indicates an expected call of CreateInput.
internal/mocks/store.go:52
Method
CreateInput
(ctx context.Context, in *Input)
internal/service/input.go:62
Method
CreateInput
@Summary Create an input @Description Create an input ready to be ingested @Accept json @Produce json @Param input body api.InputData true "Input data
internal/api/controller.go:36
Method
CreateInput
(ctx context.Context, input *model.Input)
internal/db/store.go:32
Method
DeleteInput
DeleteInput mocks base method.
internal/mocks/store.go:58
Method
DeleteInput
DeleteInput indicates an expected call of DeleteInput.
internal/mocks/store.go:66
Method
DeleteInput
(ctx context.Context, id uuid.UUID)
internal/service/input.go:132
Method
DeleteInput
@Summary Delete input @Description Delete input by ID @Produce json @Param id path string true "Input ID" @Success 200 {object} api.SuccessResponse @F
internal/api/controller.go:110
Method
DeleteInput
(ctx context.Context, id uuid.UUID)
internal/db/store.go:47
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mocks/routing.go:91
Method
Enqueue
Enqueue mocks base method.
internal/mocks/queue.go:42
Method
Enqueue
Enqueue indicates an expected call of Enqueue.
internal/mocks/queue.go:55
Method
EnqueuePackaging
@Summary Enqueue packacing job @Description Enqueue packaging job using input URL, format and ID @Produce json @Param id query string true "Input ID"
internal/api/controller.go:189
Method
Get
Get mocks base method.
internal/mocks/routing.go:44
Method
Get
Get indicates an expected call of Get.
internal/mocks/routing.go:53
Method
Get
Get mocks base method.
internal/mocks/routing.go:96
Method
Get
Get indicates an expected call of Get.
internal/mocks/routing.go:105
Method
Get
(ctx context.Context, id uuid.UUID)
internal/service/routing.go:38
Method
GetInput
GetInput mocks base method.
internal/mocks/store.go:72
Method
GetInput
GetInput indicates an expected call of GetInput.
internal/mocks/store.go:81
Method
GetInput
(ctx context.Context, id uuid.UUID)
internal/service/input.go:98
Method
GetInput
@Summary Get input @Description Get input information by ID @Produce json @Param id path string true "Input ID" @Success 200 {object} api.SuccessRespo
internal/api/controller.go:77
Method
GetInput
(ctx context.Context, id uuid.UUID)
internal/db/store.go:36
Method
GetOrigin
(ctx *gin.Context)
internal/api/controller.go:247
Function
New
()
internal/logging/logging.go:5
Function
New
(cfg *config.Config)
internal/playout/playout.go:15
Function
New
@title Streaming Platform API @version 1.0 @description Manage your streaming workflow @BasePath /api/v1
internal/api/api.go:25
Function
New
(cfg *config.Config)
internal/db/conn.go:9
Function
New
()
internal/config/config.go:20
Function
NewClient
(cfg *config.Config)
internal/queue/client.go:12
Function
NewDBInputStore
(db *gorm.DB)
internal/db/store.go:26
Function
NewMockOriginHandler
NewMockOriginHandler creates a new mock instance.
internal/mocks/routing.go:84
Function
NewServer
(cfg *config.Config)
internal/queue/server.go:8
Method
PackageStream
(ctx context.Context, id uuid.UUID)
internal/service/notification.go:31
Function
Run
(lc fx.Lifecycle, srv *asynq.Server)
internal/task/runner.go:12
Function
TestCreateInput
(t *testing.T)
internal/service/input_test.go:16
Function
TestDeleteInput
(t *testing.T)
internal/service/input_test.go:70
Function
TestGPACCommandExecute
(t *testing.T)
internal/service/command_test.go:10
Function
TestGetInput
(t *testing.T)
internal/service/input_test.go:37
Function
TestHandleStreamPackageTaskFailUnmarshal
(t *testing.T)
internal/service/packaging_test.go:12
Function
TestHandleValidationError
(t *testing.T)
internal/api/response_test.go:15
Function
TestOriginHandlerGet
(t *testing.T)
internal/service/routing_test.go:33
Function
TestOriginHandlerUpdate
(t *testing.T)
internal/service/routing_test.go:14
Function
TestOriginStoreUpdate
(t *testing.T)
internal/db/redistore/store_test.go:18
Function
TestPackageStreamEnqueueFailure
(t *testing.T)
internal/service/notification_test.go:47
Function
TestPackageStreamSuccess
(t *testing.T)
internal/service/notification_test.go:18
Method
Update
Update mocks base method.
internal/mocks/routing.go:59
Method
Update
Update indicates an expected call of Update.
internal/mocks/routing.go:67
Method
Update
Update mocks base method.
internal/mocks/routing.go:111
Method
Update
Update indicates an expected call of Update.
internal/mocks/routing.go:119
next →
1–100 of 106, ranked by callers