Documentation ¶
Overview ¶
Copyright 2022 Evan Hazlett
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func RegisterAccountsServer(s *grpc.Server, srv AccountsServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetAdmin() bool
- func (m *Account) GetCreatedAt() time.Time
- func (m *Account) GetEmail() string
- func (m *Account) GetFirstName() string
- func (m *Account) GetID() string
- func (m *Account) GetLastName() string
- func (m *Account) GetPassword() string
- func (m *Account) GetPasswordCrypt() []byte
- func (m *Account) GetUsername() string
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (m *Account) Unmarshal(dAtA []byte) error
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountsClient
- type AccountsServer
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)
- func (m *AuthenticateRequest) GetPassword() []byte
- func (m *AuthenticateRequest) GetUsername() string
- func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthenticateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthenticateRequest) ProtoMessage()
- func (m *AuthenticateRequest) Reset()
- func (m *AuthenticateRequest) Size() (n int)
- func (m *AuthenticateRequest) String() string
- func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error
- func (m *AuthenticateRequest) XXX_DiscardUnknown()
- func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthenticateRequest) XXX_Merge(src proto.Message)
- func (m *AuthenticateRequest) XXX_Size() int
- func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)
- func (m *AuthenticateResponse) GetAccount() *Account
- func (m *AuthenticateResponse) GetConfig() []byte
- func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthenticateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthenticateResponse) ProtoMessage()
- func (m *AuthenticateResponse) Reset()
- func (m *AuthenticateResponse) Size() (n int)
- func (m *AuthenticateResponse) String() string
- func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error
- func (m *AuthenticateResponse) XXX_DiscardUnknown()
- func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthenticateResponse) XXX_Merge(src proto.Message)
- func (m *AuthenticateResponse) XXX_Size() int
- func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
- func (m *ChangePasswordRequest) GetPassword() []byte
- func (m *ChangePasswordRequest) GetUsername() string
- func (m *ChangePasswordRequest) Marshal() (dAtA []byte, err error)
- func (m *ChangePasswordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ChangePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChangePasswordRequest) ProtoMessage()
- func (m *ChangePasswordRequest) Reset()
- func (m *ChangePasswordRequest) Size() (n int)
- func (m *ChangePasswordRequest) String() string
- func (m *ChangePasswordRequest) Unmarshal(dAtA []byte) error
- func (m *ChangePasswordRequest) XXX_DiscardUnknown()
- func (m *ChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangePasswordRequest) XXX_Merge(src proto.Message)
- func (m *ChangePasswordRequest) XXX_Size() int
- func (m *ChangePasswordRequest) XXX_Unmarshal(b []byte) error
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)
- func (m *CreateAccountRequest) GetAccount() *Account
- func (m *CreateAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateAccountRequest) ProtoMessage()
- func (m *CreateAccountRequest) Reset()
- func (m *CreateAccountRequest) Size() (n int)
- func (m *CreateAccountRequest) String() string
- func (m *CreateAccountRequest) Unmarshal(dAtA []byte) error
- func (m *CreateAccountRequest) XXX_DiscardUnknown()
- func (m *CreateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAccountRequest) XXX_Merge(src proto.Message)
- func (m *CreateAccountRequest) XXX_Size() int
- func (m *CreateAccountRequest) XXX_Unmarshal(b []byte) error
- type DeleteAccountRequest
- func (*DeleteAccountRequest) Descriptor() ([]byte, []int)
- func (m *DeleteAccountRequest) GetID() string
- func (m *DeleteAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteAccountRequest) ProtoMessage()
- func (m *DeleteAccountRequest) Reset()
- func (m *DeleteAccountRequest) Size() (n int)
- func (m *DeleteAccountRequest) String() string
- func (m *DeleteAccountRequest) Unmarshal(dAtA []byte) error
- func (m *DeleteAccountRequest) XXX_DiscardUnknown()
- func (m *DeleteAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteAccountRequest) XXX_Merge(src proto.Message)
- func (m *DeleteAccountRequest) XXX_Size() int
- func (m *DeleteAccountRequest) XXX_Unmarshal(b []byte) error
- type GetAccountProfileRequest
- func (*GetAccountProfileRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountProfileRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAccountProfileRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAccountProfileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAccountProfileRequest) ProtoMessage()
- func (m *GetAccountProfileRequest) Reset()
- func (m *GetAccountProfileRequest) Size() (n int)
- func (m *GetAccountProfileRequest) String() string
- func (m *GetAccountProfileRequest) Unmarshal(dAtA []byte) error
- func (m *GetAccountProfileRequest) XXX_DiscardUnknown()
- func (m *GetAccountProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountProfileRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountProfileRequest) XXX_Size() int
- func (m *GetAccountProfileRequest) XXX_Unmarshal(b []byte) error
- type GetAccountProfileResponse
- func (*GetAccountProfileResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountProfileResponse) GetAccount() *Account
- func (m *GetAccountProfileResponse) Marshal() (dAtA []byte, err error)
- func (m *GetAccountProfileResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAccountProfileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAccountProfileResponse) ProtoMessage()
- func (m *GetAccountProfileResponse) Reset()
- func (m *GetAccountProfileResponse) Size() (n int)
- func (m *GetAccountProfileResponse) String() string
- func (m *GetAccountProfileResponse) Unmarshal(dAtA []byte) error
- func (m *GetAccountProfileResponse) XXX_DiscardUnknown()
- func (m *GetAccountProfileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountProfileResponse) XXX_Merge(src proto.Message)
- func (m *GetAccountProfileResponse) XXX_Size() int
- func (m *GetAccountProfileResponse) XXX_Unmarshal(b []byte) error
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountRequest) GetUsername() string
- func (m *GetAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAccountRequest) ProtoMessage()
- func (m *GetAccountRequest) Reset()
- func (m *GetAccountRequest) Size() (n int)
- func (m *GetAccountRequest) String() string
- func (m *GetAccountRequest) Unmarshal(dAtA []byte) error
- func (m *GetAccountRequest) XXX_DiscardUnknown()
- func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountRequest) XXX_Size() int
- func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountResponse) GetAccount() *Account
- func (m *GetAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *GetAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAccountResponse) ProtoMessage()
- func (m *GetAccountResponse) Reset()
- func (m *GetAccountResponse) Size() (n int)
- func (m *GetAccountResponse) String() string
- func (m *GetAccountResponse) Unmarshal(dAtA []byte) error
- func (m *GetAccountResponse) XXX_DiscardUnknown()
- func (m *GetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountResponse) XXX_Merge(src proto.Message)
- func (m *GetAccountResponse) XXX_Size() int
- func (m *GetAccountResponse) XXX_Unmarshal(b []byte) error
- type ListAccountsRequest
- func (*ListAccountsRequest) Descriptor() ([]byte, []int)
- func (m *ListAccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListAccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListAccountsRequest) ProtoMessage()
- func (m *ListAccountsRequest) Reset()
- func (m *ListAccountsRequest) Size() (n int)
- func (m *ListAccountsRequest) String() string
- func (m *ListAccountsRequest) Unmarshal(dAtA []byte) error
- func (m *ListAccountsRequest) XXX_DiscardUnknown()
- func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
- func (m *ListAccountsRequest) XXX_Size() int
- func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)
- func (m *ListAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListAccountsResponse) ProtoMessage()
- func (m *ListAccountsResponse) Reset()
- func (m *ListAccountsResponse) Size() (n int)
- func (m *ListAccountsResponse) String() string
- func (m *ListAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *ListAccountsResponse) XXX_DiscardUnknown()
- func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
- func (m *ListAccountsResponse) XXX_Size() int
- func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedAccountsServer
- func (*UnimplementedAccountsServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error)
- func (*UnimplementedAccountsServer) ChangePassword(ctx context.Context, req *ChangePasswordRequest) (*types.Empty, error)
- func (*UnimplementedAccountsServer) CreateAccount(ctx context.Context, req *CreateAccountRequest) (*types.Empty, error)
- func (*UnimplementedAccountsServer) DeleteAccount(ctx context.Context, req *DeleteAccountRequest) (*types.Empty, error)
- func (*UnimplementedAccountsServer) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error)
- func (*UnimplementedAccountsServer) GetAccountProfile(ctx context.Context, req *GetAccountProfileRequest) (*GetAccountProfileResponse, error)
- func (*UnimplementedAccountsServer) ListAccounts(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error)
- func (*UnimplementedAccountsServer) UpdateAccount(ctx context.Context, req *UpdateAccountRequest) (*types.Empty, error)
- type UpdateAccountRequest
- func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
- func (m *UpdateAccountRequest) GetAccount() *Account
- func (m *UpdateAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdateAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateAccountRequest) ProtoMessage()
- func (m *UpdateAccountRequest) Reset()
- func (m *UpdateAccountRequest) Size() (n int)
- func (m *UpdateAccountRequest) String() string
- func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error
- func (m *UpdateAccountRequest) XXX_DiscardUnknown()
- func (m *UpdateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateAccountRequest) XXX_Merge(src proto.Message)
- func (m *UpdateAccountRequest) XXX_Size() int
- func (m *UpdateAccountRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterAccountsServer ¶
func RegisterAccountsServer(s *grpc.Server, srv AccountsServer)
Types ¶
type Account ¶
type Account struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` Admin bool `protobuf:"varint,3,opt,name=admin,proto3" json:"admin,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` // password is only used in account creation and password resets // and is hashed with bcrypt and then cleared and never stored Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"` PasswordCrypt []byte `protobuf:"bytes,9,opt,name=password_crypt,json=passwordCrypt,proto3" json:"password_crypt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Account) Descriptor ¶
func (*Account) GetCreatedAt ¶
func (*Account) GetFirstName ¶
func (*Account) GetLastName ¶
func (*Account) GetPassword ¶
func (*Account) GetPasswordCrypt ¶
func (*Account) GetUsername ¶
func (*Account) MarshalToSizedBuffer ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type AccountsClient ¶
type AccountsClient interface { ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*types.Empty, error) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*types.Empty, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*types.Empty, error) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*types.Empty, error) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) GetAccountProfile(ctx context.Context, in *GetAccountProfileRequest, opts ...grpc.CallOption) (*GetAccountProfileResponse, error) }
AccountsClient is the client API for Accounts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountsClient ¶
func NewAccountsClient(cc *grpc.ClientConn) AccountsClient
type AccountsServer ¶
type AccountsServer interface { ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) CreateAccount(context.Context, *CreateAccountRequest) (*types.Empty, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) UpdateAccount(context.Context, *UpdateAccountRequest) (*types.Empty, error) ChangePassword(context.Context, *ChangePasswordRequest) (*types.Empty, error) DeleteAccount(context.Context, *DeleteAccountRequest) (*types.Empty, error) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) GetAccountProfile(context.Context, *GetAccountProfileRequest) (*GetAccountProfileResponse, error) }
AccountsServer is the server API for Accounts service.
type AuthenticateRequest ¶
type AuthenticateRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthenticateRequest) Descriptor ¶
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
func (*AuthenticateRequest) GetPassword ¶
func (m *AuthenticateRequest) GetPassword() []byte
func (*AuthenticateRequest) GetUsername ¶
func (m *AuthenticateRequest) GetUsername() string
func (*AuthenticateRequest) Marshal ¶
func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error)
func (*AuthenticateRequest) MarshalTo ¶
func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthenticateRequest) MarshalToSizedBuffer ¶
func (m *AuthenticateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) Reset ¶
func (m *AuthenticateRequest) Reset()
func (*AuthenticateRequest) Size ¶
func (m *AuthenticateRequest) Size() (n int)
func (*AuthenticateRequest) String ¶
func (m *AuthenticateRequest) String() string
func (*AuthenticateRequest) Unmarshal ¶
func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error
func (*AuthenticateRequest) XXX_DiscardUnknown ¶
func (m *AuthenticateRequest) XXX_DiscardUnknown()
func (*AuthenticateRequest) XXX_Marshal ¶
func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthenticateRequest) XXX_Merge ¶
func (m *AuthenticateRequest) XXX_Merge(src proto.Message)
func (*AuthenticateRequest) XXX_Size ¶
func (m *AuthenticateRequest) XXX_Size() int
func (*AuthenticateRequest) XXX_Unmarshal ¶
func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error
type AuthenticateResponse ¶
type AuthenticateResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthenticateResponse) Descriptor ¶
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
func (*AuthenticateResponse) GetAccount ¶
func (m *AuthenticateResponse) GetAccount() *Account
func (*AuthenticateResponse) GetConfig ¶
func (m *AuthenticateResponse) GetConfig() []byte
func (*AuthenticateResponse) Marshal ¶
func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error)
func (*AuthenticateResponse) MarshalTo ¶
func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthenticateResponse) MarshalToSizedBuffer ¶
func (m *AuthenticateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) Reset ¶
func (m *AuthenticateResponse) Reset()
func (*AuthenticateResponse) Size ¶
func (m *AuthenticateResponse) Size() (n int)
func (*AuthenticateResponse) String ¶
func (m *AuthenticateResponse) String() string
func (*AuthenticateResponse) Unmarshal ¶
func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error
func (*AuthenticateResponse) XXX_DiscardUnknown ¶
func (m *AuthenticateResponse) XXX_DiscardUnknown()
func (*AuthenticateResponse) XXX_Marshal ¶
func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthenticateResponse) XXX_Merge ¶
func (m *AuthenticateResponse) XXX_Merge(src proto.Message)
func (*AuthenticateResponse) XXX_Size ¶
func (m *AuthenticateResponse) XXX_Size() int
func (*AuthenticateResponse) XXX_Unmarshal ¶
func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChangePasswordRequest) Descriptor ¶
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
func (*ChangePasswordRequest) GetPassword ¶
func (m *ChangePasswordRequest) GetPassword() []byte
func (*ChangePasswordRequest) GetUsername ¶
func (m *ChangePasswordRequest) GetUsername() string
func (*ChangePasswordRequest) Marshal ¶
func (m *ChangePasswordRequest) Marshal() (dAtA []byte, err error)
func (*ChangePasswordRequest) MarshalTo ¶
func (m *ChangePasswordRequest) MarshalTo(dAtA []byte) (int, error)
func (*ChangePasswordRequest) MarshalToSizedBuffer ¶
func (m *ChangePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) Reset ¶
func (m *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) Size ¶
func (m *ChangePasswordRequest) Size() (n int)
func (*ChangePasswordRequest) String ¶
func (m *ChangePasswordRequest) String() string
func (*ChangePasswordRequest) Unmarshal ¶
func (m *ChangePasswordRequest) Unmarshal(dAtA []byte) error
func (*ChangePasswordRequest) XXX_DiscardUnknown ¶
func (m *ChangePasswordRequest) XXX_DiscardUnknown()
func (*ChangePasswordRequest) XXX_Marshal ¶
func (m *ChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChangePasswordRequest) XXX_Merge ¶
func (m *ChangePasswordRequest) XXX_Merge(src proto.Message)
func (*ChangePasswordRequest) XXX_Size ¶
func (m *ChangePasswordRequest) XXX_Size() int
func (*ChangePasswordRequest) XXX_Unmarshal ¶
func (m *ChangePasswordRequest) XXX_Unmarshal(b []byte) error
type CreateAccountRequest ¶
type CreateAccountRequest struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateAccountRequest) Descriptor ¶
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
func (*CreateAccountRequest) GetAccount ¶
func (m *CreateAccountRequest) GetAccount() *Account
func (*CreateAccountRequest) Marshal ¶
func (m *CreateAccountRequest) Marshal() (dAtA []byte, err error)
func (*CreateAccountRequest) MarshalTo ¶
func (m *CreateAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateAccountRequest) MarshalToSizedBuffer ¶
func (m *CreateAccountRequest) MarshalToSizedBuffer(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
func (*CreateAccountRequest) XXX_DiscardUnknown ¶
func (m *CreateAccountRequest) XXX_DiscardUnknown()
func (*CreateAccountRequest) XXX_Marshal ¶
func (m *CreateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAccountRequest) XXX_Merge ¶
func (m *CreateAccountRequest) XXX_Merge(src proto.Message)
func (*CreateAccountRequest) XXX_Size ¶
func (m *CreateAccountRequest) XXX_Size() int
func (*CreateAccountRequest) XXX_Unmarshal ¶
func (m *CreateAccountRequest) XXX_Unmarshal(b []byte) error
type DeleteAccountRequest ¶
type DeleteAccountRequest struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteAccountRequest) Descriptor ¶
func (*DeleteAccountRequest) Descriptor() ([]byte, []int)
func (*DeleteAccountRequest) GetID ¶
func (m *DeleteAccountRequest) GetID() string
func (*DeleteAccountRequest) Marshal ¶
func (m *DeleteAccountRequest) Marshal() (dAtA []byte, err error)
func (*DeleteAccountRequest) MarshalTo ¶
func (m *DeleteAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*DeleteAccountRequest) MarshalToSizedBuffer ¶
func (m *DeleteAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteAccountRequest) ProtoMessage ¶
func (*DeleteAccountRequest) ProtoMessage()
func (*DeleteAccountRequest) Reset ¶
func (m *DeleteAccountRequest) Reset()
func (*DeleteAccountRequest) Size ¶
func (m *DeleteAccountRequest) Size() (n int)
func (*DeleteAccountRequest) String ¶
func (m *DeleteAccountRequest) String() string
func (*DeleteAccountRequest) Unmarshal ¶
func (m *DeleteAccountRequest) Unmarshal(dAtA []byte) error
func (*DeleteAccountRequest) XXX_DiscardUnknown ¶
func (m *DeleteAccountRequest) XXX_DiscardUnknown()
func (*DeleteAccountRequest) XXX_Marshal ¶
func (m *DeleteAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteAccountRequest) XXX_Merge ¶
func (m *DeleteAccountRequest) XXX_Merge(src proto.Message)
func (*DeleteAccountRequest) XXX_Size ¶
func (m *DeleteAccountRequest) XXX_Size() int
func (*DeleteAccountRequest) XXX_Unmarshal ¶
func (m *DeleteAccountRequest) XXX_Unmarshal(b []byte) error
type GetAccountProfileRequest ¶
type GetAccountProfileRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountProfileRequest) Descriptor ¶
func (*GetAccountProfileRequest) Descriptor() ([]byte, []int)
func (*GetAccountProfileRequest) Marshal ¶
func (m *GetAccountProfileRequest) Marshal() (dAtA []byte, err error)
func (*GetAccountProfileRequest) MarshalTo ¶
func (m *GetAccountProfileRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAccountProfileRequest) MarshalToSizedBuffer ¶
func (m *GetAccountProfileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAccountProfileRequest) ProtoMessage ¶
func (*GetAccountProfileRequest) ProtoMessage()
func (*GetAccountProfileRequest) Reset ¶
func (m *GetAccountProfileRequest) Reset()
func (*GetAccountProfileRequest) Size ¶
func (m *GetAccountProfileRequest) Size() (n int)
func (*GetAccountProfileRequest) String ¶
func (m *GetAccountProfileRequest) String() string
func (*GetAccountProfileRequest) Unmarshal ¶
func (m *GetAccountProfileRequest) Unmarshal(dAtA []byte) error
func (*GetAccountProfileRequest) XXX_DiscardUnknown ¶
func (m *GetAccountProfileRequest) XXX_DiscardUnknown()
func (*GetAccountProfileRequest) XXX_Marshal ¶
func (m *GetAccountProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountProfileRequest) XXX_Merge ¶
func (m *GetAccountProfileRequest) XXX_Merge(src proto.Message)
func (*GetAccountProfileRequest) XXX_Size ¶
func (m *GetAccountProfileRequest) XXX_Size() int
func (*GetAccountProfileRequest) XXX_Unmarshal ¶
func (m *GetAccountProfileRequest) XXX_Unmarshal(b []byte) error
type GetAccountProfileResponse ¶
type GetAccountProfileResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountProfileResponse) Descriptor ¶
func (*GetAccountProfileResponse) Descriptor() ([]byte, []int)
func (*GetAccountProfileResponse) GetAccount ¶
func (m *GetAccountProfileResponse) GetAccount() *Account
func (*GetAccountProfileResponse) Marshal ¶
func (m *GetAccountProfileResponse) Marshal() (dAtA []byte, err error)
func (*GetAccountProfileResponse) MarshalTo ¶
func (m *GetAccountProfileResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetAccountProfileResponse) MarshalToSizedBuffer ¶
func (m *GetAccountProfileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAccountProfileResponse) ProtoMessage ¶
func (*GetAccountProfileResponse) ProtoMessage()
func (*GetAccountProfileResponse) Reset ¶
func (m *GetAccountProfileResponse) Reset()
func (*GetAccountProfileResponse) Size ¶
func (m *GetAccountProfileResponse) Size() (n int)
func (*GetAccountProfileResponse) String ¶
func (m *GetAccountProfileResponse) String() string
func (*GetAccountProfileResponse) Unmarshal ¶
func (m *GetAccountProfileResponse) Unmarshal(dAtA []byte) error
func (*GetAccountProfileResponse) XXX_DiscardUnknown ¶
func (m *GetAccountProfileResponse) XXX_DiscardUnknown()
func (*GetAccountProfileResponse) XXX_Marshal ¶
func (m *GetAccountProfileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountProfileResponse) XXX_Merge ¶
func (m *GetAccountProfileResponse) XXX_Merge(src proto.Message)
func (*GetAccountProfileResponse) XXX_Size ¶
func (m *GetAccountProfileResponse) XXX_Size() int
func (*GetAccountProfileResponse) XXX_Unmarshal ¶
func (m *GetAccountProfileResponse) XXX_Unmarshal(b []byte) error
type GetAccountRequest ¶
type GetAccountRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountRequest) Descriptor ¶
func (*GetAccountRequest) Descriptor() ([]byte, []int)
func (*GetAccountRequest) GetUsername ¶
func (m *GetAccountRequest) GetUsername() string
func (*GetAccountRequest) Marshal ¶
func (m *GetAccountRequest) Marshal() (dAtA []byte, err error)
func (*GetAccountRequest) MarshalTo ¶
func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAccountRequest) MarshalToSizedBuffer ¶
func (m *GetAccountRequest) MarshalToSizedBuffer(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
func (*GetAccountRequest) XXX_DiscardUnknown ¶
func (m *GetAccountRequest) XXX_DiscardUnknown()
func (*GetAccountRequest) XXX_Marshal ¶
func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountRequest) XXX_Merge ¶
func (m *GetAccountRequest) XXX_Merge(src proto.Message)
func (*GetAccountRequest) XXX_Size ¶
func (m *GetAccountRequest) XXX_Size() int
func (*GetAccountRequest) XXX_Unmarshal ¶
func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error
type GetAccountResponse ¶
type GetAccountResponse struct { Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountResponse) Descriptor ¶
func (*GetAccountResponse) Descriptor() ([]byte, []int)
func (*GetAccountResponse) GetAccount ¶
func (m *GetAccountResponse) GetAccount() *Account
func (*GetAccountResponse) Marshal ¶
func (m *GetAccountResponse) Marshal() (dAtA []byte, err error)
func (*GetAccountResponse) MarshalTo ¶
func (m *GetAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetAccountResponse) MarshalToSizedBuffer ¶
func (m *GetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) Reset ¶
func (m *GetAccountResponse) Reset()
func (*GetAccountResponse) Size ¶
func (m *GetAccountResponse) Size() (n int)
func (*GetAccountResponse) String ¶
func (m *GetAccountResponse) String() string
func (*GetAccountResponse) Unmarshal ¶
func (m *GetAccountResponse) Unmarshal(dAtA []byte) error
func (*GetAccountResponse) XXX_DiscardUnknown ¶
func (m *GetAccountResponse) XXX_DiscardUnknown()
func (*GetAccountResponse) XXX_Marshal ¶
func (m *GetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountResponse) XXX_Merge ¶
func (m *GetAccountResponse) XXX_Merge(src proto.Message)
func (*GetAccountResponse) XXX_Size ¶
func (m *GetAccountResponse) XXX_Size() int
func (*GetAccountResponse) XXX_Unmarshal ¶
func (m *GetAccountResponse) XXX_Unmarshal(b []byte) error
type ListAccountsRequest ¶
type ListAccountsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListAccountsRequest) Descriptor ¶
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
func (*ListAccountsRequest) Marshal ¶
func (m *ListAccountsRequest) Marshal() (dAtA []byte, err error)
func (*ListAccountsRequest) MarshalTo ¶
func (m *ListAccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListAccountsRequest) MarshalToSizedBuffer ¶
func (m *ListAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListAccountsRequest) ProtoMessage ¶
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) Reset ¶
func (m *ListAccountsRequest) Reset()
func (*ListAccountsRequest) Size ¶
func (m *ListAccountsRequest) Size() (n int)
func (*ListAccountsRequest) String ¶
func (m *ListAccountsRequest) String() string
func (*ListAccountsRequest) Unmarshal ¶
func (m *ListAccountsRequest) Unmarshal(dAtA []byte) error
func (*ListAccountsRequest) XXX_DiscardUnknown ¶
func (m *ListAccountsRequest) XXX_DiscardUnknown()
func (*ListAccountsRequest) XXX_Marshal ¶
func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsRequest) XXX_Merge ¶
func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
func (*ListAccountsRequest) XXX_Size ¶
func (m *ListAccountsRequest) XXX_Size() int
func (*ListAccountsRequest) XXX_Unmarshal ¶
func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
type ListAccountsResponse ¶
type ListAccountsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListAccountsResponse) Descriptor ¶
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
func (*ListAccountsResponse) Marshal ¶
func (m *ListAccountsResponse) Marshal() (dAtA []byte, err error)
func (*ListAccountsResponse) MarshalTo ¶
func (m *ListAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListAccountsResponse) MarshalToSizedBuffer ¶
func (m *ListAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListAccountsResponse) ProtoMessage ¶
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) Reset ¶
func (m *ListAccountsResponse) Reset()
func (*ListAccountsResponse) Size ¶
func (m *ListAccountsResponse) Size() (n int)
func (*ListAccountsResponse) String ¶
func (m *ListAccountsResponse) String() string
func (*ListAccountsResponse) Unmarshal ¶
func (m *ListAccountsResponse) Unmarshal(dAtA []byte) error
func (*ListAccountsResponse) XXX_DiscardUnknown ¶
func (m *ListAccountsResponse) XXX_DiscardUnknown()
func (*ListAccountsResponse) XXX_Marshal ¶
func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsResponse) XXX_Merge ¶
func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
func (*ListAccountsResponse) XXX_Size ¶
func (m *ListAccountsResponse) XXX_Size() int
func (*ListAccountsResponse) XXX_Unmarshal ¶
func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
type UnimplementedAccountsServer ¶
type UnimplementedAccountsServer struct { }
UnimplementedAccountsServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountsServer) Authenticate ¶
func (*UnimplementedAccountsServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error)
func (*UnimplementedAccountsServer) ChangePassword ¶
func (*UnimplementedAccountsServer) ChangePassword(ctx context.Context, req *ChangePasswordRequest) (*types.Empty, error)
func (*UnimplementedAccountsServer) CreateAccount ¶
func (*UnimplementedAccountsServer) CreateAccount(ctx context.Context, req *CreateAccountRequest) (*types.Empty, error)
func (*UnimplementedAccountsServer) DeleteAccount ¶
func (*UnimplementedAccountsServer) DeleteAccount(ctx context.Context, req *DeleteAccountRequest) (*types.Empty, error)
func (*UnimplementedAccountsServer) GetAccount ¶
func (*UnimplementedAccountsServer) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error)
func (*UnimplementedAccountsServer) GetAccountProfile ¶
func (*UnimplementedAccountsServer) GetAccountProfile(ctx context.Context, req *GetAccountProfileRequest) (*GetAccountProfileResponse, error)
func (*UnimplementedAccountsServer) ListAccounts ¶
func (*UnimplementedAccountsServer) ListAccounts(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error)
func (*UnimplementedAccountsServer) UpdateAccount ¶
func (*UnimplementedAccountsServer) UpdateAccount(ctx context.Context, req *UpdateAccountRequest) (*types.Empty, error)
type UpdateAccountRequest ¶
type UpdateAccountRequest struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateAccountRequest) Descriptor ¶
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
func (*UpdateAccountRequest) GetAccount ¶
func (m *UpdateAccountRequest) GetAccount() *Account
func (*UpdateAccountRequest) Marshal ¶
func (m *UpdateAccountRequest) Marshal() (dAtA []byte, err error)
func (*UpdateAccountRequest) MarshalTo ¶
func (m *UpdateAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*UpdateAccountRequest) MarshalToSizedBuffer ¶
func (m *UpdateAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateAccountRequest) ProtoMessage ¶
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) Reset ¶
func (m *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) Size ¶
func (m *UpdateAccountRequest) Size() (n int)
func (*UpdateAccountRequest) String ¶
func (m *UpdateAccountRequest) String() string
func (*UpdateAccountRequest) Unmarshal ¶
func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error
func (*UpdateAccountRequest) XXX_DiscardUnknown ¶
func (m *UpdateAccountRequest) XXX_DiscardUnknown()
func (*UpdateAccountRequest) XXX_Marshal ¶
func (m *UpdateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateAccountRequest) XXX_Merge ¶
func (m *UpdateAccountRequest) XXX_Merge(src proto.Message)
func (*UpdateAccountRequest) XXX_Size ¶
func (m *UpdateAccountRequest) XXX_Size() int
func (*UpdateAccountRequest) XXX_Unmarshal ¶
func (m *UpdateAccountRequest) XXX_Unmarshal(b []byte) error