You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
426 B
27 lines
426 B
package service
|
|
|
|
import (
|
|
"rition-testsuite/client"
|
|
"time"
|
|
)
|
|
|
|
type Config struct {
|
|
ClientConfig client.Config
|
|
DataFileLocation string
|
|
|
|
ReportInterval time.Duration `json:"reportInterval,omitempty"`
|
|
}
|
|
|
|
type Service struct {
|
|
config Config
|
|
client *client.Client
|
|
}
|
|
|
|
func NewService(config Config) *Service {
|
|
service := Service{
|
|
config: config,
|
|
client: client.NetClient(config.ClientConfig),
|
|
}
|
|
|
|
return &service
|
|
}
|
|
|