version

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: Apache-2.0 Imports: 12 Imported by: 10

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

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

type Config struct {
	AMP       *Details
	Amplifier *Details
}

Config version information

func (Config) AmplifierOK

func (v Config) AmplifierOK() bool

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

func (*ListReply) GetReply

func (m *ListReply) GetReply() *VersionInfo

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 Server

type Server struct {
	Version   string
	Port      string
	GoVersion string
	Os        string
	Arch      string
}

Server server information

func (*Server) List

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

List Returns Amplifier info from Server.go

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

Jump to

Keyboard shortcuts

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