util

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointWatch

type EndpointWatch struct {
	ProposeFn      func(ctx context.Context, session *connect.Session) error
	RejectionsChan chan *connect.SessionRejection

	Receive func() (*connect.WatchRequest, error)
}

func (*EndpointWatch) Propose

func (w *EndpointWatch) Propose(ctx context.Context, session *connect.Session) error

func (*EndpointWatch) Rejections

func (w *EndpointWatch) Rejections() <-chan *connect.SessionRejection

func (*EndpointWatch) StartReceiveRejections

func (w *EndpointWatch) StartReceiveRejections(ctx context.Context)

type SessionProposal

type SessionProposal struct {
	Proposal *connect.Session
	RejectFn func(ctx context.Context, r *connect.RejectionReason) error
}

func (*SessionProposal) Reject

func (*SessionProposal) Session

func (p *SessionProposal) Session() *connect.Session

func (*SessionProposal) String

func (p *SessionProposal) String() string

Jump to

Keyboard shortcuts

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