oktopus/backend/services/mtp/stomp/server/client/config.go

26 lines
735 B
Go

package client
import (
"time"
"github.com/go-stomp/stomp/v3"
)
// Contains information the client package needs from the
// rest of the STOMP server code.
type Config interface {
// Method to authenticate a login and associated passcode.
// Returns true if login/passcode is valid, false otherwise.
Authenticate(login, passcode string) bool
// Default duration for read/write heart-beat values. If this
// returns zero, no heart-beat will take place. If this value is
// larger than the maximu permitted value (which is more than
// 11 days, but less than 12 days), then it is truncated to the
// maximum permitted values.
HeartBeat() time.Duration
// Logger provides the logger for a client
Logger() stomp.Logger
}