Documentation ¶
Index ¶
- type DashboardsService
- func (s *DashboardsService) CreateDashboard(ctx context.Context, req *pb.CreateDashboardRequest) (*pb.Dashboard, error)
- func (s *DashboardsService) DeleteDashboard(ctx context.Context, req *pb.DeleteDashboardRequest) (*empty.Empty, error)
- func (s *DashboardsService) GetDashboard(ctx context.Context, req *pb.GetDashboardRequest) (*pb.Dashboard, error)
- func (s *DashboardsService) UpdateDashboard(ctx context.Context, req *pb.UpdateDashboardRequest) (*pb.Dashboard, error)
- type MockService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardsService ¶
type DashboardsService struct { *MockService pb.UnimplementedDashboardsServiceServer }
func (*DashboardsService) CreateDashboard ¶
func (s *DashboardsService) CreateDashboard(ctx context.Context, req *pb.CreateDashboardRequest) (*pb.Dashboard, error)
func (*DashboardsService) DeleteDashboard ¶
func (s *DashboardsService) DeleteDashboard(ctx context.Context, req *pb.DeleteDashboardRequest) (*empty.Empty, error)
func (*DashboardsService) GetDashboard ¶
func (s *DashboardsService) GetDashboard(ctx context.Context, req *pb.GetDashboardRequest) (*pb.Dashboard, error)
func (*DashboardsService) UpdateDashboard ¶
func (s *DashboardsService) UpdateDashboard(ctx context.Context, req *pb.UpdateDashboardRequest) (*pb.Dashboard, error)
type MockService ¶
type MockService struct { *common.MockEnvironment // contains filtered or unexported fields }
MockService represents a mocked apikeys service.
func New ¶
func New(env *common.MockEnvironment, storage storage.Storage) *MockService
New creates a MockService.
func (*MockService) ExpectedHost ¶
func (s *MockService) ExpectedHost() string
func (*MockService) NewHTTPMux ¶
func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error)
func (*MockService) Register ¶
func (s *MockService) Register(grpcServer *grpc.Server)
Click to show internal directories.
Click to hide internal directories.