Documentation ¶
Index ¶
- type Server
- type ServerOption
- func Credentials(creds credentials.TransportCredentials) ServerOption
- func Middleware(ms ...middleware.Middleware) ServerOption
- func OverLocalhostTCP() ServerOption
- func OverUDS() ServerOption
- func OverrideContext(fn func(context.Context) context.Context) ServerOption
- func StreamServerInterceptor(interceptors ...grpc.StreamServerInterceptor) ServerOption
- func UnaryServerInterceptor(interceptors ...grpc.UnaryServerInterceptor) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func StartServer ¶
func StartServer(tb testing.TB, registerFn func(s grpc.ServiceRegistrar), opts ...ServerOption) *Server
func (*Server) Dial ¶
func (s *Server) Dial(tb testing.TB, extraOptions ...grpc.DialOption) grpc.ClientConnInterface
type ServerOption ¶
type ServerOption = func(*serverConfig)
func Credentials ¶
func Credentials(creds credentials.TransportCredentials) ServerOption
func Middleware ¶
func Middleware(ms ...middleware.Middleware) ServerOption
func OverLocalhostTCP ¶
func OverLocalhostTCP() ServerOption
func OverUDS ¶
func OverUDS() ServerOption
func OverrideContext ¶
func OverrideContext(fn func(context.Context) context.Context) ServerOption
func StreamServerInterceptor ¶
func StreamServerInterceptor(interceptors ...grpc.StreamServerInterceptor) ServerOption
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(interceptors ...grpc.UnaryServerInterceptor) ServerOption
Click to show internal directories.
Click to hide internal directories.