titan

package
v0.0.0-...-1498bf1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode int

type Request

type Request struct {
	Jsonrpc string            `json:"jsonrpc"`
	ID      interface{}       `json:"id,omitempty"`
	Method  string            `json:"method"`
	Params  json.RawMessage   `json:"params"`
	Meta    map[string]string `json:"meta,omitempty"`
}

Request defines a JSON RPC request from the spec http://www.jsonrpc.org/specification#request_object

type Response

type Response struct {
	Jsonrpc string      `json:"jsonrpc"`
	Result  interface{} `json:"result,omitempty"`
	ID      interface{} `json:"id"`
	Error   *respError  `json:"error,omitempty"`
}

Response defines a JSON RPC response from the spec http://www.jsonrpc.org/specification#response_object

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(options config.Config) (*Service, error)

func (*Service) GetLocalMinioEndpoint

func (s *Service) GetLocalMinioEndpoint(schedulerURL string) (*types.MinioConfig, error)

GetLocalMinioEndpoint get local minio endpoint

func (*Service) GetScheduler

func (s *Service) GetScheduler() (string, error)

GetScheduler get the scheduler URL from the specified candidate ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL