fakes2av2

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package fakes2av2 is a fake S2Av2 Go implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	s2av2pb.UnimplementedS2AServiceServer
	// ExpectedToken is the token S2Av2 expects to be attached to the SessionReq.
	ExpectedToken string
	// ShouldNotReturnClientCredentials indicates whether the fake S2Av2 should
	// not return credentials when GetTlsConfiguration is called by a client.
	ShouldNotReturnClientCredentials bool

	ServerAuthorizationPolicy []byte
	// contains filtered or unexported fields
}

Server is a fake S2A Server for testing.

func (*Server) SetUpSession

func (s *Server) SetUpSession(stream s2av2pb.S2AService_SetUpSessionServer) error

SetUpSession receives SessionReq, performs request, and returns a SessionResp, all on the server stream.

Jump to

Keyboard shortcuts

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