Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matija Petrunic committed Oct 19, 2020
1 parent a41825a commit 4caa81f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package scheduler

import "github.com/go-co-op/gocron"

// Scheduler schedules go cron jobs
type Scheduler interface {
Every(interval uint64) *gocron.Scheduler
Do(jobFun interface{}, params ...interface{}) (*gocron.Job, error)
Expand Down
7 changes: 6 additions & 1 deletion internal/tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ const (
RemoteAddr = "0.0.0.0:AUTO"
)

// Tunnel is tunnel connection with load balancer
type Tunnel struct {
NodeRPCURL *url.URL
}

// Tunneler defines methods for connecting to load balancer tunnel
type Tunneler interface {
// StartTunnel connects to load balancer tunnel port and creates connection
// StartTunnel connects to load balancer tunnel port and creates connection.
// nodeID is id that is passed in daemon,
// tunnelServerAddress is public address of load balancer tunnel server and
// token is jwt token given when registering with load balancer.
StartTunnel(nodeID string, tunnelServerAddress string, token string)
}

Expand Down

0 comments on commit 4caa81f

Please sign in to comment.