account

package
v0.0.0-...-c34d2c7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package account is a generated protocol buffer package.

It is generated from these files:

account.proto

It has these top-level messages:

Account
UpdatePasswordRequest
VerifyPasswordRequest
AccountList
GetAccountListRequest
CreateAccountRequest
GetAccountRequest
GetAccountByPhonenumberRequest
PasswordResetRequest
EmailChangeRequest
EmailConfirmation
GetOrCreateRequest
TrackEventRequest
SyncUserRequest

Index

Constants

View Source
const (
	// ServerPort tells the gRPC server what port to listen on
	ServerPort = ":1000"
	// Endpoint defines the DNS of the account server for clients
	// to access the server in Kubernetes.
	Endpoint = "accountserver-service" + ServerPort
)

Variables

View Source
var (
	ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccount   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)

Types

type Account

type Account struct {
	Uuid               string    `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" db:"uuid"`
	Name               string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" db:"name"`
	Email              string    `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty" db:"email"`
	ConfirmedAndActive bool      `` /* 144-byte string literal not displayed */
	MemberSince        time.Time `protobuf:"bytes,5,opt,name=member_since,json=memberSince,stdtime" json:"member_since" db:"member_since"`
	Support            bool      `protobuf:"varint,6,opt,name=support,proto3" json:"support,omitempty" db:"support"`
	Phonenumber        string    `protobuf:"bytes,7,opt,name=phonenumber,proto3" json:"phonenumber,omitempty" db:"phonenumber"`
	PhotoUrl           string    `protobuf:"bytes,8,opt,name=photo_url,json=photoUrl,proto3" json:"photo_url,omitempty" db:"photo_url"`
}

func (*Account) Descriptor

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

func (*Account) GetMemberSince

func (m *Account) GetMemberSince() time.Time

func (*Account) Marshal

func (m *Account) Marshal() (dAtA []byte, err error)

func (*Account) MarshalTo

func (m *Account) MarshalTo(dAtA []byte) (int, error)

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) Size

func (m *Account) Size() (n int)

func (*Account) String

func (m *Account) String() string

func (*Account) Unmarshal

func (m *Account) Unmarshal(dAtA []byte) error

type AccountList

type AccountList struct {
	Accounts []Account `protobuf:"bytes,1,rep,name=accounts" json:"accounts"`
	Limit    int32     `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset   int32     `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
}

func (*AccountList) Descriptor

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

func (*AccountList) GetAccounts

func (m *AccountList) GetAccounts() []Account

func (*AccountList) Marshal

func (m *AccountList) Marshal() (dAtA []byte, err error)

func (*AccountList) MarshalTo

func (m *AccountList) MarshalTo(dAtA []byte) (int, error)

func (*AccountList) ProtoMessage

func (*AccountList) ProtoMessage()

func (*AccountList) Reset

func (m *AccountList) Reset()

func (*AccountList) Size

func (m *AccountList) Size() (n int)

func (*AccountList) String

func (m *AccountList) String() string

func (*AccountList) Unmarshal

func (m *AccountList) Unmarshal(dAtA []byte) error

type AccountServiceClient

type AccountServiceClient interface {
	Create(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*Account, error)
	List(ctx context.Context, in *GetAccountListRequest, opts ...grpc.CallOption) (*AccountList, error)
	Get(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error)
	Update(ctx context.Context, in *Account, opts ...grpc.CallOption) (*Account, error)
	UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	RequestPasswordReset(ctx context.Context, in *PasswordResetRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	RequestEmailChange(ctx context.Context, in *EmailChangeRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	VerifyPassword(ctx context.Context, in *VerifyPasswordRequest, opts ...grpc.CallOption) (*Account, error)
	ChangeEmail(ctx context.Context, in *EmailConfirmation, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	GetOrCreate(ctx context.Context, in *GetOrCreateRequest, opts ...grpc.CallOption) (*Account, error)
	GetAccountByPhonenumber(ctx context.Context, in *GetAccountByPhonenumberRequest, opts ...grpc.CallOption) (*Account, error)
	TrackEvent(ctx context.Context, in *TrackEventRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	SyncUser(ctx context.Context, in *SyncUserRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
}

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

func NewClient

func NewClient() (AccountServiceClient, func() error, error)

NewClient returns a gRPC client for interacting with the account. After calling it, run a defer close on the close function

type CreateAccountRequest

type CreateAccountRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email       string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Phonenumber string `protobuf:"bytes,3,opt,name=phonenumber,proto3" json:"phonenumber,omitempty"`
}

func (*CreateAccountRequest) Descriptor

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

func (*CreateAccountRequest) Marshal

func (m *CreateAccountRequest) Marshal() (dAtA []byte, err error)

func (*CreateAccountRequest) MarshalTo

func (m *CreateAccountRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) Reset

func (m *CreateAccountRequest) Reset()

func (*CreateAccountRequest) Size

func (m *CreateAccountRequest) Size() (n int)

func (*CreateAccountRequest) String

func (m *CreateAccountRequest) String() string

func (*CreateAccountRequest) Unmarshal

func (m *CreateAccountRequest) Unmarshal(dAtA []byte) error

type EmailChangeRequest

type EmailChangeRequest struct {
	Uuid  string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
}

func (*EmailChangeRequest) Descriptor

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

func (*EmailChangeRequest) Marshal

func (m *EmailChangeRequest) Marshal() (dAtA []byte, err error)

func (*EmailChangeRequest) MarshalTo

func (m *EmailChangeRequest) MarshalTo(dAtA []byte) (int, error)

func (*EmailChangeRequest) ProtoMessage

func (*EmailChangeRequest) ProtoMessage()

func (*EmailChangeRequest) Reset

func (m *EmailChangeRequest) Reset()

func (*EmailChangeRequest) Size

func (m *EmailChangeRequest) Size() (n int)

func (*EmailChangeRequest) String

func (m *EmailChangeRequest) String() string

func (*EmailChangeRequest) Unmarshal

func (m *EmailChangeRequest) Unmarshal(dAtA []byte) error

type EmailConfirmation

type EmailConfirmation struct {
	Uuid  string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
}

func (*EmailConfirmation) Descriptor

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

func (*EmailConfirmation) Marshal

func (m *EmailConfirmation) Marshal() (dAtA []byte, err error)

func (*EmailConfirmation) MarshalTo

func (m *EmailConfirmation) MarshalTo(dAtA []byte) (int, error)

func (*EmailConfirmation) ProtoMessage

func (*EmailConfirmation) ProtoMessage()

func (*EmailConfirmation) Reset

func (m *EmailConfirmation) Reset()

func (*EmailConfirmation) Size

func (m *EmailConfirmation) Size() (n int)

func (*EmailConfirmation) String

func (m *EmailConfirmation) String() string

func (*EmailConfirmation) Unmarshal

func (m *EmailConfirmation) Unmarshal(dAtA []byte) error

type GetAccountByPhonenumberRequest

type GetAccountByPhonenumberRequest struct {
	Phonenumber string `protobuf:"bytes,1,opt,name=phonenumber,proto3" json:"phonenumber,omitempty"`
}

func (*GetAccountByPhonenumberRequest) Descriptor

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

func (*GetAccountByPhonenumberRequest) Marshal

func (m *GetAccountByPhonenumberRequest) Marshal() (dAtA []byte, err error)

func (*GetAccountByPhonenumberRequest) MarshalTo

func (m *GetAccountByPhonenumberRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetAccountByPhonenumberRequest) ProtoMessage

func (*GetAccountByPhonenumberRequest) ProtoMessage()

func (*GetAccountByPhonenumberRequest) Reset

func (m *GetAccountByPhonenumberRequest) Reset()

func (*GetAccountByPhonenumberRequest) Size

func (m *GetAccountByPhonenumberRequest) Size() (n int)

func (*GetAccountByPhonenumberRequest) String

func (*GetAccountByPhonenumberRequest) Unmarshal

func (m *GetAccountByPhonenumberRequest) Unmarshal(dAtA []byte) error

type GetAccountListRequest

type GetAccountListRequest struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit  int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
}

func (*GetAccountListRequest) Descriptor

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

func (*GetAccountListRequest) Marshal

func (m *GetAccountListRequest) Marshal() (dAtA []byte, err error)

func (*GetAccountListRequest) MarshalTo

func (m *GetAccountListRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetAccountListRequest) ProtoMessage

func (*GetAccountListRequest) ProtoMessage()

func (*GetAccountListRequest) Reset

func (m *GetAccountListRequest) Reset()

func (*GetAccountListRequest) Size

func (m *GetAccountListRequest) Size() (n int)

func (*GetAccountListRequest) String

func (m *GetAccountListRequest) String() string

func (*GetAccountListRequest) Unmarshal

func (m *GetAccountListRequest) Unmarshal(dAtA []byte) error

type GetAccountRequest

type GetAccountRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}

func (*GetAccountRequest) Descriptor

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

func (*GetAccountRequest) Marshal

func (m *GetAccountRequest) Marshal() (dAtA []byte, err error)

func (*GetAccountRequest) MarshalTo

func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) Reset

func (m *GetAccountRequest) Reset()

func (*GetAccountRequest) Size

func (m *GetAccountRequest) Size() (n int)

func (*GetAccountRequest) String

func (m *GetAccountRequest) String() string

func (*GetAccountRequest) Unmarshal

func (m *GetAccountRequest) Unmarshal(dAtA []byte) error

type GetOrCreateRequest

type GetOrCreateRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email       string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Phonenumber string `protobuf:"bytes,3,opt,name=phonenumber,proto3" json:"phonenumber,omitempty"`
}

func (*GetOrCreateRequest) Descriptor

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

func (*GetOrCreateRequest) Marshal

func (m *GetOrCreateRequest) Marshal() (dAtA []byte, err error)

func (*GetOrCreateRequest) MarshalTo

func (m *GetOrCreateRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetOrCreateRequest) ProtoMessage

func (*GetOrCreateRequest) ProtoMessage()

func (*GetOrCreateRequest) Reset

func (m *GetOrCreateRequest) Reset()

func (*GetOrCreateRequest) Size

func (m *GetOrCreateRequest) Size() (n int)

func (*GetOrCreateRequest) String

func (m *GetOrCreateRequest) String() string

func (*GetOrCreateRequest) Unmarshal

func (m *GetOrCreateRequest) Unmarshal(dAtA []byte) error

type PasswordResetRequest

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

func (*PasswordResetRequest) Descriptor

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

func (*PasswordResetRequest) Marshal

func (m *PasswordResetRequest) Marshal() (dAtA []byte, err error)

func (*PasswordResetRequest) MarshalTo

func (m *PasswordResetRequest) MarshalTo(dAtA []byte) (int, error)

func (*PasswordResetRequest) ProtoMessage

func (*PasswordResetRequest) ProtoMessage()

func (*PasswordResetRequest) Reset

func (m *PasswordResetRequest) Reset()

func (*PasswordResetRequest) Size

func (m *PasswordResetRequest) Size() (n int)

func (*PasswordResetRequest) String

func (m *PasswordResetRequest) String() string

func (*PasswordResetRequest) Unmarshal

func (m *PasswordResetRequest) Unmarshal(dAtA []byte) error

type SyncUserRequest

type SyncUserRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}

func (*SyncUserRequest) Descriptor

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

func (*SyncUserRequest) Marshal

func (m *SyncUserRequest) Marshal() (dAtA []byte, err error)

func (*SyncUserRequest) MarshalTo

func (m *SyncUserRequest) MarshalTo(dAtA []byte) (int, error)

func (*SyncUserRequest) ProtoMessage

func (*SyncUserRequest) ProtoMessage()

func (*SyncUserRequest) Reset

func (m *SyncUserRequest) Reset()

func (*SyncUserRequest) Size

func (m *SyncUserRequest) Size() (n int)

func (*SyncUserRequest) String

func (m *SyncUserRequest) String() string

func (*SyncUserRequest) Unmarshal

func (m *SyncUserRequest) Unmarshal(dAtA []byte) error

type TrackEventRequest

type TrackEventRequest struct {
	Uuid  string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
}

func (*TrackEventRequest) Descriptor

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

func (*TrackEventRequest) Marshal

func (m *TrackEventRequest) Marshal() (dAtA []byte, err error)

func (*TrackEventRequest) MarshalTo

func (m *TrackEventRequest) MarshalTo(dAtA []byte) (int, error)

func (*TrackEventRequest) ProtoMessage

func (*TrackEventRequest) ProtoMessage()

func (*TrackEventRequest) Reset

func (m *TrackEventRequest) Reset()

func (*TrackEventRequest) Size

func (m *TrackEventRequest) Size() (n int)

func (*TrackEventRequest) String

func (m *TrackEventRequest) String() string

func (*TrackEventRequest) Unmarshal

func (m *TrackEventRequest) Unmarshal(dAtA []byte) error

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	Uuid     string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
}

func (*UpdatePasswordRequest) Descriptor

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

func (*UpdatePasswordRequest) Marshal

func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error)

func (*UpdatePasswordRequest) MarshalTo

func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) Reset

func (m *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) Size

func (m *UpdatePasswordRequest) Size() (n int)

func (*UpdatePasswordRequest) String

func (m *UpdatePasswordRequest) String() string

func (*UpdatePasswordRequest) Unmarshal

func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error

type VerifyPasswordRequest

type VerifyPasswordRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
}

func (*VerifyPasswordRequest) Descriptor

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

func (*VerifyPasswordRequest) Marshal

func (m *VerifyPasswordRequest) Marshal() (dAtA []byte, err error)

func (*VerifyPasswordRequest) MarshalTo

func (m *VerifyPasswordRequest) MarshalTo(dAtA []byte) (int, error)

func (*VerifyPasswordRequest) ProtoMessage

func (*VerifyPasswordRequest) ProtoMessage()

func (*VerifyPasswordRequest) Reset

func (m *VerifyPasswordRequest) Reset()

func (*VerifyPasswordRequest) Size

func (m *VerifyPasswordRequest) Size() (n int)

func (*VerifyPasswordRequest) String

func (m *VerifyPasswordRequest) String() string

func (*VerifyPasswordRequest) Unmarshal

func (m *VerifyPasswordRequest) Unmarshal(dAtA []byte) error

Directories

Path Synopsis
Package account is a generated protocol buffer package.
Package account is a generated protocol buffer package.
Package main implements a gRPC server that handles Staffjoy accounts.
Package main implements a gRPC server that handles Staffjoy accounts.

Jump to

Keyboard shortcuts

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