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 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) GetRegisteredAt ¶
func (m *User) GetRegisteredAt() *google_protobuf.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
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) ProtoMessage ¶
func (*UserSpec) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.