http

package
v0.0.0-...-6eddc5e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCookieProvided   = errors.New("no cookie provided")
	ErrNoHeaderProvided   = errors.New("no header provided")
	ErrInvalidTokenFormat = errors.New("invalid token")
	ErrNoTokenFound       = errors.New("no token found")
)

Functions

func BearerToken

func BearerToken(token string) func(*runtime.ClientOperation)

Types

type ServiceConfig

type ServiceConfig struct {
	Schema string
	Host   string
	Port   string
}

func NewServiceConfig

func NewServiceConfig(schema, host, port string) *ServiceConfig

func (*ServiceConfig) Address

func (s *ServiceConfig) Address() string

type ServiceContext

type ServiceContext struct {
	Host string
	// contains filtered or unexported fields
}

func NewServiceContext

func NewServiceContext(host string, c *gin.Context) *ServiceContext

func (*ServiceContext) BearerToken

func (s *ServiceContext) BearerToken() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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