dashboard

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

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

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 GetReply

type GetReply struct {
	Dashboard *dashboards.Dashboard `protobuf:"bytes,1,opt,name=dashboard" json:"dashboard,omitempty"`
}

func (*GetReply) Descriptor

func (*GetReply) Descriptor() ([]byte, []int)

func (*GetReply) GetDashboard

func (m *GetReply) GetDashboard() *dashboards.Dashboard

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) Reset

func (m *GetReply) Reset()

func (*GetReply) String

func (m *GetReply) String() string

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) Descriptor() ([]byte, []int)

func (*ListReply) GetDashboards

func (m *ListReply) GetDashboards() []*dashboards.Dashboard

func (*ListReply) ProtoMessage

func (*ListReply) ProtoMessage()

func (*ListReply) Reset

func (m *ListReply) Reset()

func (*ListReply) String

func (m *ListReply) String() string

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) Get

func (s *Server) Get(ctx context.Context, in *GetRequest) (*GetReply, error)

Get implements account.GetDashboard

func (*Server) List

func (s *Server) List(ctx context.Context, in *ListRequest) (*ListReply, error)

List implements dashboard.Server

func (*Server) Remove

func (s *Server) Remove(ctx context.Context, in *RemoveRequest) (*empty.Empty, error)

Remove implements dashboard.Server

func (*Server) UpdateData

func (s *Server) UpdateData(ctx context.Context, in *UpdateDataRequest) (*empty.Empty, error)

UpdateData implements dashboard.Server

func (*Server) UpdateName

func (s *Server) UpdateName(ctx context.Context, in *UpdateNameRequest) (*empty.Empty, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL