client

package
v0.2.2-alpha04 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientProtocolTypeHTTP           string = "http"
	ClientProtocolTypeLocalTemplated string = "local_templated"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnySdkArg

type AnySdkArg interface {
	GetArg() (interface{}, bool)
}

type AnySdkArgList

type AnySdkArgList interface {
	GetArgs() []AnySdkArg
	GetProtocolType() ClientProtocolType
}

type AnySdkClient

type AnySdkClient interface {
	Do(AnySdkDesignation, AnySdkArgList) (AnySdkResponse, error)
}

type AnySdkClientConfigurator

type AnySdkClientConfigurator interface {
	Auth(
		authCtx *dto.AuthCtx,
		authTypeRequested string,
		enforceRevokeFirst bool,
	) (AnySdkClient, error)
	InferAuthType(authCtx dto.AuthCtx, authTypeRequested string) string
}

type AnySdkDesignation

type AnySdkDesignation interface {
	GetDesignation() (interface{}, bool)
}

type AnySdkInvocation

type AnySdkInvocation interface {
	GetDesignation() (AnySdkDesignation, bool)
	GetArgs() (AnySdkArgList, bool)
}

type AnySdkResponse

type AnySdkResponse interface {
	IsErroneous() bool
	GetHttpResponse() (*http.Response, error)
}

type ClientConfiguratorInput

type ClientConfiguratorInput interface {
	GetAuthContext() *dto.AuthCtx
	GetAuthType() string
	GetEnforceRevokeFirst() bool
}

type ClientProtocolType

type ClientProtocolType int
const (
	HTTP ClientProtocolType = iota
	LocalTemplated
	Disallowed
)

func ClientProtocolTypeFromString

func ClientProtocolTypeFromString(s string) (ClientProtocolType, error)

Jump to

Keyboard shortcuts

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