version

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

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:

Info
GetRequest
GetReply
ValidateGtwURLRequest
ValidateGtwURLReply

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 GetReply added in v0.9.0

type GetReply struct {
	Info *Info `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
}

func (*GetReply) Descriptor added in v0.9.0

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

func (*GetReply) GetInfo added in v0.9.0

func (m *GetReply) GetInfo() *Info

func (*GetReply) ProtoMessage added in v0.9.0

func (*GetReply) ProtoMessage()

func (*GetReply) Reset added in v0.9.0

func (m *GetReply) Reset()

func (*GetReply) String added in v0.9.0

func (m *GetReply) String() string

type GetRequest added in v0.9.0

type GetRequest struct {
}

func (*GetRequest) Descriptor added in v0.9.0

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

func (*GetRequest) ProtoMessage added in v0.9.0

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset added in v0.9.0

func (m *GetRequest) Reset()

func (*GetRequest) String added in v0.9.0

func (m *GetRequest) String() string

type Info added in v0.9.0

type Info struct {
	Version       string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
	Build         string `protobuf:"bytes,2,opt,name=build" json:"build,omitempty"`
	GoVersion     string `protobuf:"bytes,3,opt,name=go_version,json=goVersion" json:"go_version,omitempty"`
	Os            string `protobuf:"bytes,4,opt,name=os" json:"os,omitempty"`
	Arch          string `protobuf:"bytes,5,opt,name=arch" json:"arch,omitempty"`
	Registration  string `protobuf:"bytes,6,opt,name=registration" json:"registration,omitempty"`
	Notifications bool   `protobuf:"varint,7,opt,name=notifications" json:"notifications,omitempty"`
}

func (*Info) Descriptor added in v0.9.0

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

func (*Info) GetArch added in v0.9.0

func (m *Info) GetArch() string

func (*Info) GetBuild added in v0.9.0

func (m *Info) GetBuild() string

func (*Info) GetGoVersion added in v0.9.0

func (m *Info) GetGoVersion() string

func (*Info) GetNotifications added in v0.12.0

func (m *Info) GetNotifications() bool

func (*Info) GetOs added in v0.9.0

func (m *Info) GetOs() string

func (*Info) GetRegistration added in v0.12.0

func (m *Info) GetRegistration() string

func (*Info) GetVersion added in v0.9.0

func (m *Info) GetVersion() string

func (*Info) ProtoMessage added in v0.9.0

func (*Info) ProtoMessage()

func (*Info) Reset added in v0.9.0

func (m *Info) Reset()

func (*Info) String added in v0.9.0

func (m *Info) String() string

type Server

type Server struct {
	Info *Info
}

Server server information

func (*Server) Get added in v0.9.0

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

Get Returns Amplifier info from Server.go

func (*Server) ValidateGtwURL added in v0.12.0

func (s *Server) ValidateGtwURL(ctx context.Context, in *ValidateGtwURLRequest) (*ValidateGtwURLReply, error)

ValidateGtwURL validation of the gtw url

type ValidateGtwURLReply added in v0.12.0

type ValidateGtwURLReply struct {
	Reply string `protobuf:"bytes,1,opt,name=reply" json:"reply,omitempty"`
}

func (*ValidateGtwURLReply) Descriptor added in v0.12.0

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

func (*ValidateGtwURLReply) GetReply added in v0.12.0

func (m *ValidateGtwURLReply) GetReply() string

func (*ValidateGtwURLReply) ProtoMessage added in v0.12.0

func (*ValidateGtwURLReply) ProtoMessage()

func (*ValidateGtwURLReply) Reset added in v0.12.0

func (m *ValidateGtwURLReply) Reset()

func (*ValidateGtwURLReply) String added in v0.12.0

func (m *ValidateGtwURLReply) String() string

type ValidateGtwURLRequest added in v0.12.0

type ValidateGtwURLRequest struct {
}

func (*ValidateGtwURLRequest) Descriptor added in v0.12.0

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

func (*ValidateGtwURLRequest) ProtoMessage added in v0.12.0

func (*ValidateGtwURLRequest) ProtoMessage()

func (*ValidateGtwURLRequest) Reset added in v0.12.0

func (m *ValidateGtwURLRequest) Reset()

func (*ValidateGtwURLRequest) String added in v0.12.0

func (m *ValidateGtwURLRequest) String() string

type VersionClient

type VersionClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
	ValidateGtwURL(ctx context.Context, in *ValidateGtwURLRequest, opts ...grpc.CallOption) (*ValidateGtwURLReply, error)
}

func NewVersionClient

func NewVersionClient(cc *grpc.ClientConn) VersionClient

type VersionServer

type VersionServer interface {
	Get(context.Context, *GetRequest) (*GetReply, error)
	ValidateGtwURL(context.Context, *ValidateGtwURLRequest) (*ValidateGtwURLReply, error)
}

Jump to

Keyboard shortcuts

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