whoami

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2013 License: BSD-3-Clause Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWhoamiServiceWeb

func RegisterWhoamiServiceWeb(this WhoamiServiceWeb, mux webrpc.ServeMux) error

Register a WhoamiServiceWeb implementation with the given webrpc ServeMux. If mux is nil, the default webrpc.ServeMux is used.

Types

type Empty

type Empty struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (this *Empty) Reset()

func (*Empty) String

func (this *Empty) String() string

type WhoamiService

type WhoamiService interface {
	Whoami(in *Empty, out *YouAre) error
}

WhoamiService is an interface satisfied by the generated client and which must be implemented by the object wrapped by the server.

func NewWhoamiServiceWebClient

func NewWhoamiServiceWebClient(pro webrpc.Protocol, remote *url.URL) WhoamiService

NewWhoamiServiceWebClient returns a webrpc wrapper for calling the methods of WhoamiService remotely via the web. The remote URL is the base URL of the webrpc server.

type WhoamiServiceWeb

type WhoamiServiceWeb interface {
	Whoami(r *http.Request, in *Empty, out *YouAre) error
}

WhoamiServiceWeb is the web-based RPC version of the interface which must be implemented by the object wrapped by the webrpc server.

type YouAre

type YouAre struct {
	IpAddr           *string `protobuf:"bytes,1,req,name=ip_addr" json:"ip_addr,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*YouAre) GetIpAddr

func (this *YouAre) GetIpAddr() string

func (*YouAre) ProtoMessage

func (*YouAre) ProtoMessage()

func (*YouAre) Reset

func (this *YouAre) Reset()

func (*YouAre) String

func (this *YouAre) String() string

Jump to

Keyboard shortcuts

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