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.
Click to show internal directories.
Click to hide internal directories.