Documentation ¶
Index ¶
- func NewServer(addr, templateDir, staticDir, uuid, webpackDevServer string, reload bool, ...) *http.Server
- type MockApiClient
- func (m MockApiClient) ListPods(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (*pb.ListPodsResponse, error)
- func (m MockApiClient) Stat(ctx context.Context, in *pb.MetricRequest, opts ...grpc.CallOption) (*pb.MetricResponse, error)
- func (m MockApiClient) Tap(context.Context, *pb.TapRequest, ...grpc.CallOption) (pb.Api_TapClient, error)
- func (m MockApiClient) Version(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (*pb.VersionInfo, error)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockApiClient ¶
type MockApiClient struct{}
func (MockApiClient) ListPods ¶
func (m MockApiClient) ListPods(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (*pb.ListPodsResponse, error)
func (MockApiClient) Stat ¶
func (m MockApiClient) Stat(ctx context.Context, in *pb.MetricRequest, opts ...grpc.CallOption) (*pb.MetricResponse, error)
func (MockApiClient) Tap ¶
func (m MockApiClient) Tap(context.Context, *pb.TapRequest, ...grpc.CallOption) (pb.Api_TapClient, error)
func (MockApiClient) Version ¶
func (m MockApiClient) Version(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (*pb.VersionInfo, error)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func FakeServer ¶
func FakeServer() Server
func (*Server) RenderTemplate ¶
func (s *Server) RenderTemplate(w http.ResponseWriter, templateFile, templateName string, args interface{}) error
Click to show internal directories.
Click to hide internal directories.