myxce/src/frontend/apiserver/backend/config.go

17 lines
544 B
Go

package backend
// BackendConfig holds connection parameters for the XCE controller.
// Used by RegisterToBackend to establish the C client connection.
type BackendConfig struct {
Address string // controller hostname (e.g. "localhost")
Port int // controller port (e.g. 9990)
From string // identity sent to controller (default: "xce_apiserver")
Key string // authentication key
}
// FetchFileResult holds the data returned by FetchFile.
type FetchFileResult struct {
Content []byte
FileSize uint64
BytesRead uint32
}