Documentation
¶
Overview ¶
Package version is a generated protocol buffer package.
It is generated from these files:
github.com/appcelerator/amp/api/rpc/version/version.proto
It has these top-level messages:
VersionInfo ListRequest ListReply
Package version is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterVersionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterVersionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterVersionServer(s *grpc.Server, srv VersionServer)
- type Config
- type Details
- type ListReply
- type ListRequest
- type Server
- type VersionClient
- type VersionInfo
- func (*VersionInfo) Descriptor() ([]byte, []int)
- func (m *VersionInfo) GetArch() string
- func (m *VersionInfo) GetGoversion() string
- func (m *VersionInfo) GetOs() string
- func (m *VersionInfo) GetPort() string
- func (m *VersionInfo) GetVersion() string
- func (*VersionInfo) ProtoMessage()
- func (m *VersionInfo) Reset()
- func (m *VersionInfo) String() string
- type VersionServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVersionHandler ¶
func RegisterVersionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterVersionHandler registers the http handlers for service Version to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterVersionHandlerFromEndpoint ¶
func RegisterVersionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterVersionHandlerFromEndpoint is same as RegisterVersionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterVersionServer ¶
func RegisterVersionServer(s *grpc.Server, srv VersionServer)
Types ¶
type Config ¶
Config version information
func (Config) AmplifierOK ¶
AmplifierOK Checks if AMP is connected to Amplifier
type Details ¶
type Details struct {
Version string
Build string
ConfigAddr string
Port string
GoVersion string
Os string
Arch string
}
Details detailled information
type ListReply ¶
type ListReply struct {
Reply *VersionInfo `protobuf:"bytes,1,opt,name=reply" json:"reply,omitempty"`
}
func (*ListReply) Descriptor ¶
func (*ListReply) GetReply ¶
func (m *ListReply) GetReply() *VersionInfo
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 VersionClient ¶
type VersionClient interface {
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
}
func NewVersionClient ¶
func NewVersionClient(cc *grpc.ClientConn) VersionClient
type VersionInfo ¶
type VersionInfo struct {
Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
Port string `protobuf:"bytes,2,opt,name=port" json:"port,omitempty"`
Goversion string `protobuf:"bytes,3,opt,name=goversion" json:"goversion,omitempty"`
Os string `protobuf:"bytes,4,opt,name=os" json:"os,omitempty"`
Arch string `protobuf:"bytes,5,opt,name=arch" json:"arch,omitempty"`
}
func (*VersionInfo) Descriptor ¶
func (*VersionInfo) Descriptor() ([]byte, []int)
func (*VersionInfo) GetArch ¶
func (m *VersionInfo) GetArch() string
func (*VersionInfo) GetGoversion ¶
func (m *VersionInfo) GetGoversion() string
func (*VersionInfo) GetOs ¶
func (m *VersionInfo) GetOs() string
func (*VersionInfo) GetPort ¶
func (m *VersionInfo) GetPort() string
func (*VersionInfo) GetVersion ¶
func (m *VersionInfo) GetVersion() string
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) Reset ¶
func (m *VersionInfo) Reset()
func (*VersionInfo) String ¶
func (m *VersionInfo) String() string
type VersionServer ¶
type VersionServer interface {
List(context.Context, *ListRequest) (*ListReply, error)
}
Click to show internal directories.
Click to hide internal directories.