23 lines
264 B
Go
23 lines
264 B
Go
package business
|
|
|
|
import (
|
|
"ocean/ocean/config"
|
|
"ocean/ocean/context"
|
|
)
|
|
|
|
type Client struct {
|
|
ctx *context.Context
|
|
}
|
|
|
|
func NewClient(cfg *config.Config) *Client {
|
|
ctx := &context.Context{
|
|
Config: cfg,
|
|
}
|
|
|
|
client := &Client{
|
|
ctx: ctx,
|
|
}
|
|
|
|
return client
|
|
}
|