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.
rition/rition-probe/service/service.go

23 lines
444 B

package service
import "time"
type Config struct {
CenterServer string `json:"centerServer,omitempty"`
HostName string `json:"hostName,omitempty"`
InstanceId string `json:"instanceId,omitempty"`
ReportInterval time.Duration `json:"reportInterval,omitempty"`
}
type Service struct {
config Config
}
func NewService(config Config) *Service {
service := Service{
config: config,
}
return &service
}