Documentation ¶
Overview ¶
Package dashboard is a generated protocol buffer package.
It is generated from these files:
github.com/appcelerator/amp/api/rpc/dashboard/dashboard.proto
It has these top-level messages:
CreateRequest CreateReply GetRequest GetReply UpdateNameRequest UpdateDataRequest ListRequest ListReply RemoveRequest
Package dashboard is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterDashboardHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDashboardHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDashboardServer(s *grpc.Server, srv DashboardServer)
- type CreateReply
- type CreateRequest
- type DashboardClient
- type DashboardServer
- type GetReply
- type GetRequest
- type ListReply
- type ListRequest
- type RemoveRequest
- type Server
- func (s *Server) Create(ctx context.Context, in *CreateRequest) (*CreateReply, error)
- func (s *Server) Get(ctx context.Context, in *GetRequest) (*GetReply, error)
- func (s *Server) List(ctx context.Context, in *ListRequest) (*ListReply, error)
- func (s *Server) Remove(ctx context.Context, in *RemoveRequest) (*empty.Empty, error)
- func (s *Server) UpdateData(ctx context.Context, in *UpdateDataRequest) (*empty.Empty, error)
- func (s *Server) UpdateName(ctx context.Context, in *UpdateNameRequest) (*empty.Empty, error)
- type UpdateDataRequest
- type UpdateNameRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDashboardHandler ¶
func RegisterDashboardHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDashboardHandler registers the http handlers for service Dashboard to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDashboardHandlerFromEndpoint ¶
func RegisterDashboardHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDashboardHandlerFromEndpoint is same as RegisterDashboardHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDashboardServer ¶
func RegisterDashboardServer(s *grpc.Server, srv DashboardServer)
Types ¶
type CreateReply ¶
type CreateReply struct {
Dashboard *dashboards.Dashboard `protobuf:"bytes,1,opt,name=dashboard" json:"dashboard,omitempty"`
}
func (*CreateReply) Descriptor ¶
func (*CreateReply) Descriptor() ([]byte, []int)
func (*CreateReply) GetDashboard ¶
func (m *CreateReply) GetDashboard() *dashboards.Dashboard
func (*CreateReply) ProtoMessage ¶
func (*CreateReply) ProtoMessage()
func (*CreateReply) Reset ¶
func (m *CreateReply) Reset()
func (*CreateReply) String ¶
func (m *CreateReply) String() string
type CreateRequest ¶
type CreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Data string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetData ¶
func (m *CreateRequest) GetData() string
func (*CreateRequest) GetName ¶
func (m *CreateRequest) GetName() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
type DashboardClient ¶
type DashboardClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error) UpdateName(ctx context.Context, in *UpdateNameRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) UpdateData(ctx context.Context, in *UpdateDataRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) }
func NewDashboardClient ¶
func NewDashboardClient(cc *grpc.ClientConn) DashboardClient
type DashboardServer ¶
type DashboardServer interface { Create(context.Context, *CreateRequest) (*CreateReply, error) Get(context.Context, *GetRequest) (*GetReply, error) List(context.Context, *ListRequest) (*ListReply, error) UpdateName(context.Context, *UpdateNameRequest) (*google_protobuf.Empty, error) UpdateData(context.Context, *UpdateDataRequest) (*google_protobuf.Empty, error) Remove(context.Context, *RemoveRequest) (*google_protobuf.Empty, error) }
type GetReply ¶
type GetReply struct {
Dashboard *dashboards.Dashboard `protobuf:"bytes,1,opt,name=dashboard" json:"dashboard,omitempty"`
}
func (*GetReply) Descriptor ¶
func (*GetReply) GetDashboard ¶
func (m *GetReply) GetDashboard() *dashboards.Dashboard
func (*GetReply) ProtoMessage ¶
func (*GetReply) ProtoMessage()
type GetRequest ¶
type GetRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetId ¶
func (m *GetRequest) GetId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
type ListReply ¶
type ListReply struct {
Dashboards []*dashboards.Dashboard `protobuf:"bytes,1,rep,name=dashboards" json:"dashboards,omitempty"`
}
func (*ListReply) Descriptor ¶
func (*ListReply) GetDashboards ¶
func (m *ListReply) GetDashboards() []*dashboards.Dashboard
func (*ListReply) ProtoMessage ¶
func (*ListReply) ProtoMessage()
type ListRequest ¶
type ListRequest struct { }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
type RemoveRequest ¶
type RemoveRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*RemoveRequest) Descriptor ¶
func (*RemoveRequest) Descriptor() ([]byte, []int)
func (*RemoveRequest) GetId ¶
func (m *RemoveRequest) GetId() string
func (*RemoveRequest) ProtoMessage ¶
func (*RemoveRequest) ProtoMessage()
func (*RemoveRequest) Reset ¶
func (m *RemoveRequest) Reset()
func (*RemoveRequest) String ¶
func (m *RemoveRequest) String() string
type Server ¶
type Server struct {
Dashboards dashboards.Interface
}
Server is used to implement dashboard.Server
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, in *CreateRequest) (*CreateReply, error)
Create implements dashboard.Server
func (*Server) UpdateData ¶
UpdateData implements dashboard.Server
func (*Server) UpdateName ¶
UpdateName implements dashboard.Server
type UpdateDataRequest ¶
type UpdateDataRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Data string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` }
func (*UpdateDataRequest) Descriptor ¶
func (*UpdateDataRequest) Descriptor() ([]byte, []int)
func (*UpdateDataRequest) GetData ¶
func (m *UpdateDataRequest) GetData() string
func (*UpdateDataRequest) GetId ¶
func (m *UpdateDataRequest) GetId() string
func (*UpdateDataRequest) ProtoMessage ¶
func (*UpdateDataRequest) ProtoMessage()
func (*UpdateDataRequest) Reset ¶
func (m *UpdateDataRequest) Reset()
func (*UpdateDataRequest) String ¶
func (m *UpdateDataRequest) String() string
type UpdateNameRequest ¶
type UpdateNameRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*UpdateNameRequest) Descriptor ¶
func (*UpdateNameRequest) Descriptor() ([]byte, []int)
func (*UpdateNameRequest) GetId ¶
func (m *UpdateNameRequest) GetId() string
func (*UpdateNameRequest) GetName ¶
func (m *UpdateNameRequest) GetName() string
func (*UpdateNameRequest) ProtoMessage ¶
func (*UpdateNameRequest) ProtoMessage()
func (*UpdateNameRequest) Reset ¶
func (m *UpdateNameRequest) Reset()
func (*UpdateNameRequest) String ¶
func (m *UpdateNameRequest) String() string