account

package
Version: v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

Functions

func RegisterAccountServiceHandler

func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAccountServiceHandler registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAccountServiceHandlerClient

func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error

RegisterAccountServiceHandlerClient registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountServiceClient" to call the correct interceptors.

func RegisterAccountServiceHandlerFromEndpoint

func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAccountServiceHandlerFromEndpoint is same as RegisterAccountServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAccountServiceHandlerServer

func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error

RegisterAccountServiceHandlerServer registers the http handlers for service AccountService to "mux". UnaryRPC :call AccountServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAccountServiceHandlerFromEndpoint instead.

func RegisterAccountServiceServer

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

Types

type Account

type Account struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Enabled              bool     `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Capabilities         []string `protobuf:"bytes,3,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
	Tokens               []*Token `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Account) Descriptor

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

func (*Account) GetCapabilities

func (m *Account) GetCapabilities() []string

func (*Account) GetEnabled

func (m *Account) GetEnabled() bool

func (*Account) GetName

func (m *Account) GetName() string

func (*Account) GetTokens

func (m *Account) GetTokens() []*Token

func (*Account) Marshal

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

func (*Account) MarshalTo

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

func (*Account) MarshalToSizedBuffer

func (m *Account) MarshalToSizedBuffer(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

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Account) XXX_Merge

func (m *Account) XXX_Merge(src proto.Message)

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

func (m *Account) XXX_Unmarshal(b []byte) error

type AccountServiceClient

type AccountServiceClient interface {
	// CanI checks if the current account has permission to perform an action
	CanI(ctx context.Context, in *CanIRequest, opts ...grpc.CallOption) (*CanIResponse, error)
	// UpdatePassword updates an account's password to a new value
	UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error)
	// ListAccounts returns the list of accounts
	ListAccounts(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*AccountsList, error)
	// GetAccount returns an account
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error)
	// CreateToken creates a token
	CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error)
	// DeleteToken deletes a token
	DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

AccountServiceClient is the client API for AccountService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

type AccountServiceServer

type AccountServiceServer interface {
	// CanI checks if the current account has permission to perform an action
	CanI(context.Context, *CanIRequest) (*CanIResponse, error)
	// UpdatePassword updates an account's password to a new value
	UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
	// ListAccounts returns the list of accounts
	ListAccounts(context.Context, *ListAccountRequest) (*AccountsList, error)
	// GetAccount returns an account
	GetAccount(context.Context, *GetAccountRequest) (*Account, error)
	// CreateToken creates a token
	CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
	// DeleteToken deletes a token
	DeleteToken(context.Context, *DeleteTokenRequest) (*EmptyResponse, error)
}

AccountServiceServer is the server API for AccountService service.

type AccountsList

type AccountsList struct {
	Items                []*Account `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*AccountsList) Descriptor

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

func (*AccountsList) GetItems

func (m *AccountsList) GetItems() []*Account

func (*AccountsList) Marshal

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

func (*AccountsList) MarshalTo

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

func (*AccountsList) MarshalToSizedBuffer

func (m *AccountsList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccountsList) ProtoMessage

func (*AccountsList) ProtoMessage()

func (*AccountsList) Reset

func (m *AccountsList) Reset()

func (*AccountsList) Size

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

func (*AccountsList) String

func (m *AccountsList) String() string

func (*AccountsList) Unmarshal

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

func (*AccountsList) XXX_DiscardUnknown

func (m *AccountsList) XXX_DiscardUnknown()

func (*AccountsList) XXX_Marshal

func (m *AccountsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountsList) XXX_Merge

func (m *AccountsList) XXX_Merge(src proto.Message)

func (*AccountsList) XXX_Size

func (m *AccountsList) XXX_Size() int

func (*AccountsList) XXX_Unmarshal

func (m *AccountsList) XXX_Unmarshal(b []byte) error

type CanIRequest

type CanIRequest struct {
	Resource             string   `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Action               string   `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	Subresource          string   `protobuf:"bytes,3,opt,name=subresource,proto3" json:"subresource,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CanIRequest) Descriptor

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

func (*CanIRequest) GetAction

func (m *CanIRequest) GetAction() string

func (*CanIRequest) GetResource

func (m *CanIRequest) GetResource() string

func (*CanIRequest) GetSubresource

func (m *CanIRequest) GetSubresource() string

func (*CanIRequest) Marshal

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

func (*CanIRequest) MarshalTo

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

func (*CanIRequest) MarshalToSizedBuffer

func (m *CanIRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CanIRequest) ProtoMessage

func (*CanIRequest) ProtoMessage()

func (*CanIRequest) Reset

func (m *CanIRequest) Reset()

func (*CanIRequest) Size

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

func (*CanIRequest) String

func (m *CanIRequest) String() string

func (*CanIRequest) Unmarshal

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

func (*CanIRequest) XXX_DiscardUnknown

func (m *CanIRequest) XXX_DiscardUnknown()

func (*CanIRequest) XXX_Marshal

func (m *CanIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CanIRequest) XXX_Merge

func (m *CanIRequest) XXX_Merge(src proto.Message)

func (*CanIRequest) XXX_Size

func (m *CanIRequest) XXX_Size() int

func (*CanIRequest) XXX_Unmarshal

func (m *CanIRequest) XXX_Unmarshal(b []byte) error

type CanIResponse

type CanIResponse struct {
	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CanIResponse) Descriptor

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

func (*CanIResponse) GetValue

func (m *CanIResponse) GetValue() string

func (*CanIResponse) Marshal

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

func (*CanIResponse) MarshalTo

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

func (*CanIResponse) MarshalToSizedBuffer

func (m *CanIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CanIResponse) ProtoMessage

func (*CanIResponse) ProtoMessage()

func (*CanIResponse) Reset

func (m *CanIResponse) Reset()

func (*CanIResponse) Size

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

func (*CanIResponse) String

func (m *CanIResponse) String() string

func (*CanIResponse) Unmarshal

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

func (*CanIResponse) XXX_DiscardUnknown

func (m *CanIResponse) XXX_DiscardUnknown()

func (*CanIResponse) XXX_Marshal

func (m *CanIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CanIResponse) XXX_Merge

func (m *CanIResponse) XXX_Merge(src proto.Message)

func (*CanIResponse) XXX_Size

func (m *CanIResponse) XXX_Size() int

func (*CanIResponse) XXX_Unmarshal

func (m *CanIResponse) XXX_Unmarshal(b []byte) error

type CreateTokenRequest

type CreateTokenRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// expiresIn represents a duration in seconds
	ExpiresIn            int64    `protobuf:"varint,2,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
	Id                   string   `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTokenRequest) Descriptor

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

func (*CreateTokenRequest) GetExpiresIn

func (m *CreateTokenRequest) GetExpiresIn() int64

func (*CreateTokenRequest) GetId

func (m *CreateTokenRequest) GetId() string

func (*CreateTokenRequest) GetName

func (m *CreateTokenRequest) GetName() string

func (*CreateTokenRequest) Marshal

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

func (*CreateTokenRequest) MarshalTo

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

func (*CreateTokenRequest) MarshalToSizedBuffer

func (m *CreateTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateTokenRequest) ProtoMessage

func (*CreateTokenRequest) ProtoMessage()

func (*CreateTokenRequest) Reset

func (m *CreateTokenRequest) Reset()

func (*CreateTokenRequest) Size

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

func (*CreateTokenRequest) String

func (m *CreateTokenRequest) String() string

func (*CreateTokenRequest) Unmarshal

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

func (*CreateTokenRequest) XXX_DiscardUnknown

func (m *CreateTokenRequest) XXX_DiscardUnknown()

func (*CreateTokenRequest) XXX_Marshal

func (m *CreateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTokenRequest) XXX_Merge

func (m *CreateTokenRequest) XXX_Merge(src proto.Message)

func (*CreateTokenRequest) XXX_Size

func (m *CreateTokenRequest) XXX_Size() int

func (*CreateTokenRequest) XXX_Unmarshal

func (m *CreateTokenRequest) XXX_Unmarshal(b []byte) error

type CreateTokenResponse

type CreateTokenResponse struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTokenResponse) Descriptor

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

func (*CreateTokenResponse) GetToken

func (m *CreateTokenResponse) GetToken() string

func (*CreateTokenResponse) Marshal

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

func (*CreateTokenResponse) MarshalTo

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

func (*CreateTokenResponse) MarshalToSizedBuffer

func (m *CreateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateTokenResponse) ProtoMessage

func (*CreateTokenResponse) ProtoMessage()

func (*CreateTokenResponse) Reset

func (m *CreateTokenResponse) Reset()

func (*CreateTokenResponse) Size

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

func (*CreateTokenResponse) String

func (m *CreateTokenResponse) String() string

func (*CreateTokenResponse) Unmarshal

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

func (*CreateTokenResponse) XXX_DiscardUnknown

func (m *CreateTokenResponse) XXX_DiscardUnknown()

func (*CreateTokenResponse) XXX_Marshal

func (m *CreateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTokenResponse) XXX_Merge

func (m *CreateTokenResponse) XXX_Merge(src proto.Message)

func (*CreateTokenResponse) XXX_Size

func (m *CreateTokenResponse) XXX_Size() int

func (*CreateTokenResponse) XXX_Unmarshal

func (m *CreateTokenResponse) XXX_Unmarshal(b []byte) error

type DeleteTokenRequest

type DeleteTokenRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTokenRequest) Descriptor

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

func (*DeleteTokenRequest) GetId

func (m *DeleteTokenRequest) GetId() string

func (*DeleteTokenRequest) GetName

func (m *DeleteTokenRequest) GetName() string

func (*DeleteTokenRequest) Marshal

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

func (*DeleteTokenRequest) MarshalTo

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

func (*DeleteTokenRequest) MarshalToSizedBuffer

func (m *DeleteTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteTokenRequest) ProtoMessage

func (*DeleteTokenRequest) ProtoMessage()

func (*DeleteTokenRequest) Reset

func (m *DeleteTokenRequest) Reset()

func (*DeleteTokenRequest) Size

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

func (*DeleteTokenRequest) String

func (m *DeleteTokenRequest) String() string

func (*DeleteTokenRequest) Unmarshal

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

func (*DeleteTokenRequest) XXX_DiscardUnknown

func (m *DeleteTokenRequest) XXX_DiscardUnknown()

func (*DeleteTokenRequest) XXX_Marshal

func (m *DeleteTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTokenRequest) XXX_Merge

func (m *DeleteTokenRequest) XXX_Merge(src proto.Message)

func (*DeleteTokenRequest) XXX_Size

func (m *DeleteTokenRequest) XXX_Size() int

func (*DeleteTokenRequest) XXX_Unmarshal

func (m *DeleteTokenRequest) XXX_Unmarshal(b []byte) error

type EmptyResponse

type EmptyResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyResponse) Descriptor

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

func (*EmptyResponse) Marshal

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

func (*EmptyResponse) MarshalTo

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

func (*EmptyResponse) MarshalToSizedBuffer

func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset

func (m *EmptyResponse) Reset()

func (*EmptyResponse) Size

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

func (*EmptyResponse) String

func (m *EmptyResponse) String() string

func (*EmptyResponse) Unmarshal

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

func (*EmptyResponse) XXX_DiscardUnknown

func (m *EmptyResponse) XXX_DiscardUnknown()

func (*EmptyResponse) XXX_Marshal

func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmptyResponse) XXX_Merge

func (m *EmptyResponse) XXX_Merge(src proto.Message)

func (*EmptyResponse) XXX_Size

func (m *EmptyResponse) XXX_Size() int

func (*EmptyResponse) XXX_Unmarshal

func (m *EmptyResponse) XXX_Unmarshal(b []byte) error

type GetAccountRequest

type GetAccountRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAccountRequest) Descriptor

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

func (*GetAccountRequest) GetName

func (m *GetAccountRequest) GetName() 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 ListAccountRequest

type ListAccountRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListAccountRequest) Descriptor

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

func (*ListAccountRequest) Marshal

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

func (*ListAccountRequest) MarshalTo

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

func (*ListAccountRequest) MarshalToSizedBuffer

func (m *ListAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListAccountRequest) ProtoMessage

func (*ListAccountRequest) ProtoMessage()

func (*ListAccountRequest) Reset

func (m *ListAccountRequest) Reset()

func (*ListAccountRequest) Size

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

func (*ListAccountRequest) String

func (m *ListAccountRequest) String() string

func (*ListAccountRequest) Unmarshal

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

func (*ListAccountRequest) XXX_DiscardUnknown

func (m *ListAccountRequest) XXX_DiscardUnknown()

func (*ListAccountRequest) XXX_Marshal

func (m *ListAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListAccountRequest) XXX_Merge

func (m *ListAccountRequest) XXX_Merge(src proto.Message)

func (*ListAccountRequest) XXX_Size

func (m *ListAccountRequest) XXX_Size() int

func (*ListAccountRequest) XXX_Unmarshal

func (m *ListAccountRequest) XXX_Unmarshal(b []byte) error

type Token

type Token struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	IssuedAt             int64    `protobuf:"varint,2,opt,name=issuedAt,proto3" json:"issuedAt,omitempty"`
	ExpiresAt            int64    `protobuf:"varint,3,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Token) Descriptor

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

func (*Token) GetExpiresAt

func (m *Token) GetExpiresAt() int64

func (*Token) GetId

func (m *Token) GetId() string

func (*Token) GetIssuedAt

func (m *Token) GetIssuedAt() int64

func (*Token) Marshal

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

func (*Token) MarshalTo

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

func (*Token) MarshalToSizedBuffer

func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) Size

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

func (*Token) String

func (m *Token) String() string

func (*Token) Unmarshal

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

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

type TokensList

type TokensList struct {
	Items                []*Token `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TokensList) Descriptor

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

func (*TokensList) GetItems

func (m *TokensList) GetItems() []*Token

func (*TokensList) Marshal

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

func (*TokensList) MarshalTo

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

func (*TokensList) MarshalToSizedBuffer

func (m *TokensList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TokensList) ProtoMessage

func (*TokensList) ProtoMessage()

func (*TokensList) Reset

func (m *TokensList) Reset()

func (*TokensList) Size

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

func (*TokensList) String

func (m *TokensList) String() string

func (*TokensList) Unmarshal

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

func (*TokensList) XXX_DiscardUnknown

func (m *TokensList) XXX_DiscardUnknown()

func (*TokensList) XXX_Marshal

func (m *TokensList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokensList) XXX_Merge

func (m *TokensList) XXX_Merge(src proto.Message)

func (*TokensList) XXX_Size

func (m *TokensList) XXX_Size() int

func (*TokensList) XXX_Unmarshal

func (m *TokensList) XXX_Unmarshal(b []byte) error

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServiceServer) CanI

func (*UnimplementedAccountServiceServer) CreateToken

func (*UnimplementedAccountServiceServer) DeleteToken

func (*UnimplementedAccountServiceServer) GetAccount

func (*UnimplementedAccountServiceServer) ListAccounts

func (*UnimplementedAccountServiceServer) UpdatePassword

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	NewPassword          string   `protobuf:"bytes,1,opt,name=newPassword,proto3" json:"newPassword,omitempty"`
	CurrentPassword      string   `protobuf:"bytes,2,opt,name=currentPassword,proto3" json:"currentPassword,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePasswordRequest) Descriptor

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

func (*UpdatePasswordRequest) GetCurrentPassword

func (m *UpdatePasswordRequest) GetCurrentPassword() string

func (*UpdatePasswordRequest) GetName

func (m *UpdatePasswordRequest) GetName() string

func (*UpdatePasswordRequest) GetNewPassword

func (m *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) Marshal

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

func (*UpdatePasswordRequest) MarshalTo

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

func (*UpdatePasswordRequest) MarshalToSizedBuffer

func (m *UpdatePasswordRequest) MarshalToSizedBuffer(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

func (*UpdatePasswordRequest) XXX_DiscardUnknown

func (m *UpdatePasswordRequest) XXX_DiscardUnknown()

func (*UpdatePasswordRequest) XXX_Marshal

func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePasswordRequest) XXX_Merge

func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)

func (*UpdatePasswordRequest) XXX_Size

func (m *UpdatePasswordRequest) XXX_Size() int

func (*UpdatePasswordRequest) XXX_Unmarshal

func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error

type UpdatePasswordResponse

type UpdatePasswordResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePasswordResponse) Descriptor

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

func (*UpdatePasswordResponse) Marshal

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

func (*UpdatePasswordResponse) MarshalTo

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

func (*UpdatePasswordResponse) MarshalToSizedBuffer

func (m *UpdatePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePasswordResponse) ProtoMessage

func (*UpdatePasswordResponse) ProtoMessage()

func (*UpdatePasswordResponse) Reset

func (m *UpdatePasswordResponse) Reset()

func (*UpdatePasswordResponse) Size

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

func (*UpdatePasswordResponse) String

func (m *UpdatePasswordResponse) String() string

func (*UpdatePasswordResponse) Unmarshal

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

func (*UpdatePasswordResponse) XXX_DiscardUnknown

func (m *UpdatePasswordResponse) XXX_DiscardUnknown()

func (*UpdatePasswordResponse) XXX_Marshal

func (m *UpdatePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePasswordResponse) XXX_Merge

func (m *UpdatePasswordResponse) XXX_Merge(src proto.Message)

func (*UpdatePasswordResponse) XXX_Size

func (m *UpdatePasswordResponse) XXX_Size() int

func (*UpdatePasswordResponse) XXX_Unmarshal

func (m *UpdatePasswordResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to