api

package
v0.0.0-...-8895ee5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

accounts.proto
users.proto

It has these top-level messages:

EmailAddress
CreatedAccount
NewAccount
User
UserSpec

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(srvs Servers, opt ...grpc.ServerOption) *grpc.Server

func RegisterAccountsServer

func RegisterAccountsServer(s *grpc.Server, srv AccountsServer)

Types

type AccountsClient

type AccountsClient interface {
	Create(ctx context.Context, in *NewAccount, opts ...grpc.CallOption) (*CreatedAccount, error)
}

func NewAccountsClient

func NewAccountsClient(cc *grpc.ClientConn) AccountsClient

type AccountsServer

type AccountsServer interface {
	Create(context.Context, *NewAccount) (*CreatedAccount, error)
}

type Client

type Client struct {
	Accounts AccountsClient
}

func NewClient

func NewClient(cc *grpc.ClientConn) *Client

type CreatedAccount

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

func (*CreatedAccount) Descriptor

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

func (*CreatedAccount) GetID

func (m *CreatedAccount) GetID() string

func (*CreatedAccount) ProtoMessage

func (*CreatedAccount) ProtoMessage()

func (*CreatedAccount) Reset

func (m *CreatedAccount) Reset()

func (*CreatedAccount) String

func (m *CreatedAccount) String() string

type EmailAddress

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

func (*EmailAddress) Descriptor

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

func (*EmailAddress) GetEmail

func (m *EmailAddress) GetEmail() string

func (*EmailAddress) ProtoMessage

func (*EmailAddress) ProtoMessage()

func (*EmailAddress) Reset

func (m *EmailAddress) Reset()

func (*EmailAddress) String

func (m *EmailAddress) String() string

type NewAccount

type NewAccount struct {
	Login    string `protobuf:"bytes,1,opt,name=Login" json:"Login,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=Email" json:"Email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=Password" json:"Password,omitempty"`
}

func (*NewAccount) Descriptor

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

func (*NewAccount) GetEmail

func (m *NewAccount) GetEmail() string

func (*NewAccount) GetLogin

func (m *NewAccount) GetLogin() string

func (*NewAccount) GetPassword

func (m *NewAccount) GetPassword() string

func (*NewAccount) ProtoMessage

func (*NewAccount) ProtoMessage()

func (*NewAccount) Reset

func (m *NewAccount) Reset()

func (*NewAccount) String

func (m *NewAccount) String() string

type Servers

type Servers struct {
	Accounts AccountsServer
}

type User

type User struct {
	ID           string                     `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Login        string                     `protobuf:"bytes,2,opt,name=Login" json:"Login,omitempty"`
	Name         string                     `protobuf:"bytes,3,opt,name=Name" json:"Name,omitempty"`
	RegisteredAt *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=RegisteredAt" json:"RegisteredAt,omitempty"`
}

func (*User) Descriptor

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

func (*User) GetID

func (m *User) GetID() string

func (*User) GetLogin

func (m *User) GetLogin() string

func (*User) GetName

func (m *User) GetName() string

func (*User) GetRegisteredAt

func (m *User) GetRegisteredAt() *google_protobuf.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

type UserSpec

type UserSpec struct {
	Login string `protobuf:"bytes,1,opt,name=Login" json:"Login,omitempty"`
	ID    string `protobuf:"bytes,2,opt,name=ID" json:"ID,omitempty"`
}

func (*UserSpec) Descriptor

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

func (*UserSpec) GetID

func (m *UserSpec) GetID() string

func (*UserSpec) GetLogin

func (m *UserSpec) GetLogin() string

func (*UserSpec) ProtoMessage

func (*UserSpec) ProtoMessage()

func (*UserSpec) Reset

func (m *UserSpec) Reset()

func (*UserSpec) String

func (m *UserSpec) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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