interceptors

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ClientContextKey = "client_ctx"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ID          uuid.UUID        `db:"id" json:"id"`
	ConnectType ConnectType      `db:"connect_type" json:"connect_type"`
	CallbackURL pgtype.Text      `db:"callback_url" json:"callback_url"`
	CreatedAt   pgtype.Timestamp `db:"created_at" json:"created_at"`
	UpdatedAt   pgtype.Timestamp `db:"updated_at" json:"updated_at"`
}

type ClientContext

type ClientContext struct {
	Client *Client
}

type ConnectType

type ConnectType string
const (
	ConnectTypeGRPC ConnectType = "grpc"
	ConnectTypeRest ConnectType = "rest"
)

func (ConnectType) IsValid

func (ct ConnectType) IsValid() bool

type WatcherAuthInterceptor

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

func NewWatcherAuthInterceptor

func NewWatcherAuthInterceptor(
	clientID, clientSecret string,
) *WatcherAuthInterceptor

func (*WatcherAuthInterceptor) WrapStreamingClient

WrapStreamingClient wraps the streaming server function

func (*WatcherAuthInterceptor) WrapStreamingHandler

WrapStreamingHandler wraps the streaming server function

func (*WatcherAuthInterceptor) WrapUnary

WrapUnary wraps the unary function

Jump to

Keyboard shortcuts

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