account

package
v0.0.0-...-ba49760 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package account is a generated protocol buffer package.

It is generated from these files:

github.com/bketelsen/microclass/module4/4main/proto/account/account.proto

It has these top-level messages:

User
Session
CreateRequest
CreateResponse
DeleteRequest
DeleteResponse
ReadRequest
ReadResponse
UpdateRequest
UpdateResponse
UpdatePasswordRequest
UpdatePasswordResponse
SearchRequest
SearchResponse
ReadSessionRequest
ReadSessionResponse
LoginRequest
LoginResponse
LogoutRequest
LogoutResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccountHandler

func RegisterAccountHandler(s server.Server, hdlr AccountHandler, opts ...server.HandlerOption)

Types

type Account

type Account struct {
	AccountHandler
}

func (*Account) Create

func (h *Account) Create(ctx context.Context, in *CreateRequest, out *CreateResponse) error

func (*Account) Delete

func (h *Account) Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error

func (*Account) Login

func (h *Account) Login(ctx context.Context, in *LoginRequest, out *LoginResponse) error

func (*Account) Logout

func (h *Account) Logout(ctx context.Context, in *LogoutRequest, out *LogoutResponse) error

func (*Account) Read

func (h *Account) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error

func (*Account) ReadSession

func (h *Account) ReadSession(ctx context.Context, in *ReadSessionRequest, out *ReadSessionResponse) error

func (*Account) Search

func (h *Account) Search(ctx context.Context, in *SearchRequest, out *SearchResponse) error

func (*Account) Update

func (h *Account) Update(ctx context.Context, in *UpdateRequest, out *UpdateResponse) error

func (*Account) UpdatePassword

func (h *Account) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, out *UpdatePasswordResponse) error

type AccountClient

func NewAccountClient

func NewAccountClient(serviceName string, c client.Client) AccountClient

type CreateRequest

type CreateRequest struct {
	User     *User  `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}

func (*CreateRequest) Descriptor

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

func (*CreateRequest) GetPassword

func (m *CreateRequest) GetPassword() string

func (*CreateRequest) GetUser

func (m *CreateRequest) GetUser() *User

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
}

func (*CreateResponse) Descriptor

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

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) Reset

func (m *CreateResponse) Reset()

func (*CreateResponse) String

func (m *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*DeleteRequest) Descriptor

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

func (*DeleteRequest) GetId

func (m *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
}

func (*DeleteResponse) Descriptor

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

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String

func (m *DeleteResponse) String() string

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
}

func (*LoginRequest) Descriptor

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

func (*LoginRequest) GetEmail

func (m *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (m *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) String

func (m *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Session *Session `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"`
}

func (*LoginResponse) Descriptor

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

func (*LoginResponse) GetSession

func (m *LoginResponse) GetSession() *Session

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) Reset

func (m *LoginResponse) Reset()

func (*LoginResponse) String

func (m *LoginResponse) String() string

type LogoutRequest

type LogoutRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=sessionId" json:"sessionId,omitempty"`
}

func (*LogoutRequest) Descriptor

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

func (*LogoutRequest) GetSessionId

func (m *LogoutRequest) GetSessionId() string

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) Reset

func (m *LogoutRequest) Reset()

func (*LogoutRequest) String

func (m *LogoutRequest) String() string

type LogoutResponse

type LogoutResponse struct {
}

func (*LogoutResponse) Descriptor

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

func (*LogoutResponse) ProtoMessage

func (*LogoutResponse) ProtoMessage()

func (*LogoutResponse) Reset

func (m *LogoutResponse) Reset()

func (*LogoutResponse) String

func (m *LogoutResponse) String() string

type ReadRequest

type ReadRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*ReadRequest) Descriptor

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

func (*ReadRequest) GetId

func (m *ReadRequest) GetId() string

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset

func (m *ReadRequest) Reset()

func (*ReadRequest) String

func (m *ReadRequest) String() string

type ReadResponse

type ReadResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}

func (*ReadResponse) Descriptor

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

func (*ReadResponse) GetUser

func (m *ReadResponse) GetUser() *User

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset

func (m *ReadResponse) Reset()

func (*ReadResponse) String

func (m *ReadResponse) String() string

type ReadSessionRequest

type ReadSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=sessionId" json:"sessionId,omitempty"`
}

func (*ReadSessionRequest) Descriptor

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

func (*ReadSessionRequest) GetSessionId

func (m *ReadSessionRequest) GetSessionId() string

func (*ReadSessionRequest) ProtoMessage

func (*ReadSessionRequest) ProtoMessage()

func (*ReadSessionRequest) Reset

func (m *ReadSessionRequest) Reset()

func (*ReadSessionRequest) String

func (m *ReadSessionRequest) String() string

type ReadSessionResponse

type ReadSessionResponse struct {
	Session *Session `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"`
}

func (*ReadSessionResponse) Descriptor

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

func (*ReadSessionResponse) GetSession

func (m *ReadSessionResponse) GetSession() *Session

func (*ReadSessionResponse) ProtoMessage

func (*ReadSessionResponse) ProtoMessage()

func (*ReadSessionResponse) Reset

func (m *ReadSessionResponse) Reset()

func (*ReadSessionResponse) String

func (m *ReadSessionResponse) String() string

type SearchRequest

type SearchRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Limit    int64  `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
	Offset   int64  `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"`
}

func (*SearchRequest) Descriptor

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

func (*SearchRequest) GetEmail

func (m *SearchRequest) GetEmail() string

func (*SearchRequest) GetLimit

func (m *SearchRequest) GetLimit() int64

func (*SearchRequest) GetOffset

func (m *SearchRequest) GetOffset() int64

func (*SearchRequest) GetUsername

func (m *SearchRequest) GetUsername() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset

func (m *SearchRequest) Reset()

func (*SearchRequest) String

func (m *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}

func (*SearchResponse) Descriptor

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

func (*SearchResponse) GetUsers

func (m *SearchResponse) GetUsers() []*User

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) Reset

func (m *SearchResponse) Reset()

func (*SearchResponse) String

func (m *SearchResponse) String() string

type Session

type Session struct {
	Id       string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
	Created  int64  `protobuf:"varint,3,opt,name=created" json:"created,omitempty"`
	Expires  int64  `protobuf:"varint,4,opt,name=expires" json:"expires,omitempty"`
}

func (*Session) Descriptor

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

func (*Session) GetCreated

func (m *Session) GetCreated() int64

func (*Session) GetExpires

func (m *Session) GetExpires() int64

func (*Session) GetId

func (m *Session) GetId() string

func (*Session) GetUsername

func (m *Session) GetUsername() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	UserId          string `protobuf:"bytes,1,opt,name=userId" json:"userId,omitempty"`
	OldPassword     string `protobuf:"bytes,2,opt,name=oldPassword" json:"oldPassword,omitempty"`
	NewPassword     string `protobuf:"bytes,3,opt,name=newPassword" json:"newPassword,omitempty"`
	ConfirmPassword string `protobuf:"bytes,4,opt,name=confirmPassword" json:"confirmPassword,omitempty"`
}

func (*UpdatePasswordRequest) Descriptor

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

func (*UpdatePasswordRequest) GetConfirmPassword

func (m *UpdatePasswordRequest) GetConfirmPassword() string

func (*UpdatePasswordRequest) GetNewPassword

func (m *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) GetOldPassword

func (m *UpdatePasswordRequest) GetOldPassword() string

func (*UpdatePasswordRequest) GetUserId

func (m *UpdatePasswordRequest) GetUserId() string

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) Reset

func (m *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) String

func (m *UpdatePasswordRequest) String() string

type UpdatePasswordResponse

type UpdatePasswordResponse struct {
}

func (*UpdatePasswordResponse) Descriptor

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

func (*UpdatePasswordResponse) ProtoMessage

func (*UpdatePasswordResponse) ProtoMessage()

func (*UpdatePasswordResponse) Reset

func (m *UpdatePasswordResponse) Reset()

func (*UpdatePasswordResponse) String

func (m *UpdatePasswordResponse) String() string

type UpdateRequest

type UpdateRequest struct {
	User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}

func (*UpdateRequest) Descriptor

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

func (*UpdateRequest) GetUser

func (m *UpdateRequest) GetUser() *User

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
}

func (*UpdateResponse) Descriptor

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

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

type User

type User struct {
	Id       string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"`
	Created  int64  `protobuf:"varint,4,opt,name=created" json:"created,omitempty"`
	Updated  int64  `protobuf:"varint,5,opt,name=updated" json:"updated,omitempty"`
}

func (*User) Descriptor

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

func (*User) GetCreated

func (m *User) GetCreated() int64

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetId

func (m *User) GetId() string

func (*User) GetUpdated

func (m *User) GetUpdated() int64

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

Jump to

Keyboard shortcuts

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