injectivepriceoracleapi

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "Injective Price Oracle API"

ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.

Variables

View Source
var MethodNames = [1]string{"probe"}

MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.

Functions

func MakeInternal

func MakeInternal(err error) *goa.ServiceError

MakeInternal builds a goa.ServiceError from an error.

func MakeInvalidArg

func MakeInvalidArg(err error) *goa.ServiceError

MakeInvalidArg builds a goa.ServiceError from an error.

func MakeNotFound

func MakeNotFound(err error) *goa.ServiceError

MakeNotFound builds a goa.ServiceError from an error.

func MakeUnauthorized

func MakeUnauthorized(err error) *goa.ServiceError

MakeUnauthorized builds a goa.ServiceError from an error.

func NewProbeEndpoint

func NewProbeEndpoint(s Service, authAPIKeyFn security.AuthAPIKeyFunc) goa.Endpoint

NewProbeEndpoint returns an endpoint function that calls the method "probe" of service "Injective Price Oracle API".

Types

type Auther

type Auther interface {
	// APIKeyAuth implements the authorization logic for the APIKey security scheme.
	APIKeyAuth(ctx context.Context, key string, schema *security.APIKeyScheme) (context.Context, error)
}

Auther defines the authorization functions to be implemented by the service.

type Client

type Client struct {
	ProbeEndpoint goa.Endpoint
}

Client is the "Injective Price Oracle API" service client.

func NewClient

func NewClient(probe goa.Endpoint) *Client

NewClient initializes a "Injective Price Oracle API" service client given the endpoints.

func (*Client) Probe

func (c *Client) Probe(ctx context.Context, p *ProbePayload) (res *ProbeResponse, err error)

Probe calls the "probe" endpoint of the "Injective Price Oracle API" service.

type Endpoints

type Endpoints struct {
	Probe goa.Endpoint
}

Endpoints wraps the "Injective Price Oracle API" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

NewEndpoints wraps the methods of the "Injective Price Oracle API" service with endpoints.

func (*Endpoints) Use

func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint)

Use applies the given middleware to all the "Injective Price Oracle API" service endpoints.

type ProbePayload

type ProbePayload struct {
	// API key for authentication
	Key *string
	// TOML file contents
	Content []byte
}

ProbePayload is the payload type of the Injective Price Oracle API service probe method.

type ProbeResponse

type ProbeResponse struct {
	// Result of the probe
	Result string
}

ProbeResponse is the result type of the Injective Price Oracle API service probe method.

type Service

type Service interface {
	// Validate TOML file
	Probe(context.Context, *ProbePayload) (res *ProbeResponse, err error)
}

Injective-Price-Oracle services API doc

Jump to

Keyboard shortcuts

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