api

package
v0.0.0-...-b27e624 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

github.com/tomogoma/usersms/pkg/api/status.proto

It has these top-level messages:

Request
Response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStatusHandler

func RegisterStatusHandler(s server.Server, hdlr StatusHandler, opts ...server.HandlerOption)

Types

type Key

type Key struct {
	ID          string
	UserID      string
	Val         []byte
	Created     time.Time
	LastUpdated time.Time
}

func (Key) Value

func (k Key) Value() []byte

type Request

type Request struct {
	APIKey string `protobuf:"bytes,1,opt,name=APIKey" json:"APIKey,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetAPIKey

func (m *Request) GetAPIKey() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	Name          string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Version       string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	Description   string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	CanonicalName string `protobuf:"bytes,4,opt,name=canonicalName" json:"canonicalName,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetCanonicalName

func (m *Response) GetCanonicalName() string

func (*Response) GetDescription

func (m *Response) GetDescription() string

func (*Response) GetName

func (m *Response) GetName() string

func (*Response) GetVersion

func (m *Response) GetVersion() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type Status

type Status struct {
	StatusHandler
}

func (*Status) Check

func (h *Status) Check(ctx context.Context, in *Request, out *Response) error

type StatusClient

type StatusClient interface {
	Check(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}

func NewStatusClient

func NewStatusClient(serviceName string, c client.Client) StatusClient

type StatusHandler

type StatusHandler interface {
	Check(context.Context, *Request, *Response) error
}

Jump to

Keyboard shortcuts

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