Skip to content

Commit ef85713

Browse files
committed
Init go sdk
1 parent 11ebe97 commit ef85713

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

sdk/go/client/client.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package client
2+
3+
type Client struct {
4+
config ClientConfig
5+
}
6+
7+
func New(config ClientConfig) *Client {
8+
return &Client{
9+
config: config,
10+
}
11+
}

sdk/go/client/config.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package client
2+
3+
type ClientConfig struct {
4+
ManagerIP string
5+
Cache RedisConfig
6+
}
7+
8+
type RedisConfig struct {
9+
}

sdk/go/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/hertzcodes/transienta/go-sdk
2+
3+
go 1.25.1

0 commit comments

Comments
 (0)