transport

package
v0.0.0-...-312ee99 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorBadRequest         = errors.New("invalid request parameter")
	ErrorGrantTypeRequest   = errors.New("invalid request grant type")
	ErrorTokenRequest       = errors.New("invalid request token")
	ErrInvalidClientRequest = errors.New("invalid client message")
)

Functions

func DecodeGRPCCheckTokenRequest

func DecodeGRPCCheckTokenRequest(ctx context.Context, r interface{}) (interface{}, error)

func DecodeGRPCCheckTokenResponse

func DecodeGRPCCheckTokenResponse(_ context.Context, r interface{}) (interface{}, error)

func EncodeGRPCCheckTokenRequest

func EncodeGRPCCheckTokenRequest(_ context.Context, r interface{}) (interface{}, error)

func EncodeGRPCCheckTokenResponse

func EncodeGRPCCheckTokenResponse(_ context.Context, r interface{}) (interface{}, error)

func MakeHttpHandler

func MakeHttpHandler(ctx context.Context, endpoints endpoint.OAuth2Endpoints, tokenService service.TokenService, clientService service.ClientDetailsService, zipkinTracer *gozipkin.Tracer, logger log.Logger) http.Handler

MakeHttpHandler make http handler use mux

func NewGRPCServer

func NewGRPCServer(ctx context.Context, endpoints endpts.OAuth2Endpoints, serverTracer grpc.ServerOption) pb.OAuthServiceServer

Types

This section is empty.

Jump to

Keyboard shortcuts

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