Skip to content

Commit a0221c6

Browse files
committed
remove internal
1 parent 8ef2e25 commit a0221c6

File tree

5 files changed

+6
-87
lines changed

5 files changed

+6
-87
lines changed

internal/constants/constants.go renamed to constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package constants
1+
package golangfuse
22

33
type IngestionEventType string
44

internal/observer/observer.go

Lines changed: 0 additions & 47 deletions
This file was deleted.

internal/observer/queue.go

Lines changed: 0 additions & 31 deletions
This file was deleted.

langfuse.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"sync/atomic"
77
"time"
88

9-
"github.com/divar-ir/golangfuse/internal/constants"
109
"github.com/google/uuid"
1110
"resty.dev/v3"
1211
)
@@ -107,7 +106,7 @@ func (c *langfuseImpl) Trace(input, output any, options ...TraceOption) {
107106
c.eventBuffer.Add(IngestionEvent{
108107
ID: uuid.NewString(),
109108
Timestamp: time.Now(),
110-
Type: constants.IngestionEventTypeTraceCreate,
109+
Type: IngestionEventTypeTraceCreate,
111110
Body: trace,
112111
})
113112
}

models.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package golangfuse
22

33
import (
44
"time"
5-
6-
"github.com/divar-ir/golangfuse/internal/constants"
75
)
86

97
type Trace struct {
@@ -26,10 +24,10 @@ type Ingestion struct {
2624
}
2725

2826
type IngestionEvent struct {
29-
ID string `json:"id"`
30-
Timestamp time.Time `json:"timestamp"`
31-
Type constants.IngestionEventType `json:"type"`
32-
Body any `json:"body"`
27+
ID string `json:"id"`
28+
Timestamp time.Time `json:"timestamp"`
29+
Type IngestionEventType `json:"type"`
30+
Body any `json:"body"`
3331
}
3432

3533
type PromptItem struct {

0 commit comments

Comments
 (0)