proxy

package
v0.0.0-...-81f13ae Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proxy is a generated protocol buffer package.

It is generated from these files:

expense-service/v1/expense-service.proto

It has these top-level messages:

UserPagingRequest
ExpensesResponse
CategoriesResponse
CreateExpenseRequest
UpdateExpenseRequest
ExpenseResponse
ExpenseIDRequest
CreateCategoryRequest
UpdateCategoryRequest
CategoryResponse
CategoryIDRequest
EmptyResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExpenseServiceServer

func RegisterExpenseServiceServer(s *grpc.Server, srv ExpenseServiceServer)

Types

type CategoriesResponse

type CategoriesResponse struct {
	Categories []*CategoryResponse `protobuf:"bytes,1,rep,name=Categories" json:"Categories,omitempty"`
}

func (*CategoriesResponse) Descriptor

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

func (*CategoriesResponse) GetCategories

func (m *CategoriesResponse) GetCategories() []*CategoryResponse

func (*CategoriesResponse) ProtoMessage

func (*CategoriesResponse) ProtoMessage()

func (*CategoriesResponse) Reset

func (m *CategoriesResponse) Reset()

func (*CategoriesResponse) String

func (m *CategoriesResponse) String() string

type CategoryIDRequest

type CategoryIDRequest struct {
	ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}

func (*CategoryIDRequest) Descriptor

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

func (*CategoryIDRequest) GetID

func (m *CategoryIDRequest) GetID() string

func (*CategoryIDRequest) ProtoMessage

func (*CategoryIDRequest) ProtoMessage()

func (*CategoryIDRequest) Reset

func (m *CategoryIDRequest) Reset()

func (*CategoryIDRequest) String

func (m *CategoryIDRequest) String() string

type CategoryResponse

type CategoryResponse struct {
	ID    string  `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Limit float32 `protobuf:"fixed32,2,opt,name=Limit" json:"Limit,omitempty"`
	Name  string  `protobuf:"bytes,3,opt,name=Name" json:"Name,omitempty"`
}

func (*CategoryResponse) Descriptor

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

func (*CategoryResponse) GetID

func (m *CategoryResponse) GetID() string

func (*CategoryResponse) GetLimit

func (m *CategoryResponse) GetLimit() float32

func (*CategoryResponse) GetName

func (m *CategoryResponse) GetName() string

func (*CategoryResponse) ProtoMessage

func (*CategoryResponse) ProtoMessage()

func (*CategoryResponse) Reset

func (m *CategoryResponse) Reset()

func (*CategoryResponse) String

func (m *CategoryResponse) String() string

type CreateCategoryRequest

type CreateCategoryRequest struct {
	Limit  float32 `protobuf:"fixed32,1,opt,name=Limit" json:"Limit,omitempty"`
	Name   string  `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
	UserID string  `protobuf:"bytes,3,opt,name=UserID" json:"UserID,omitempty"`
}

func (*CreateCategoryRequest) Descriptor

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

func (*CreateCategoryRequest) GetLimit

func (m *CreateCategoryRequest) GetLimit() float32

func (*CreateCategoryRequest) GetName

func (m *CreateCategoryRequest) GetName() string

func (*CreateCategoryRequest) GetUserID

func (m *CreateCategoryRequest) GetUserID() string

func (*CreateCategoryRequest) ProtoMessage

func (*CreateCategoryRequest) ProtoMessage()

func (*CreateCategoryRequest) Reset

func (m *CreateCategoryRequest) Reset()

func (*CreateCategoryRequest) String

func (m *CreateCategoryRequest) String() string

type CreateExpenseRequest

type CreateExpenseRequest struct {
	Date       int64   `protobuf:"varint,1,opt,name=Date" json:"Date,omitempty"`
	Value      float32 `protobuf:"fixed32,2,opt,name=Value" json:"Value,omitempty"`
	CategoryID string  `protobuf:"bytes,3,opt,name=CategoryID" json:"CategoryID,omitempty"`
	UserID     string  `protobuf:"bytes,4,opt,name=UserID" json:"UserID,omitempty"`
}

func (*CreateExpenseRequest) Descriptor

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

func (*CreateExpenseRequest) GetCategoryID

func (m *CreateExpenseRequest) GetCategoryID() string

func (*CreateExpenseRequest) GetDate

func (m *CreateExpenseRequest) GetDate() int64

func (*CreateExpenseRequest) GetUserID

func (m *CreateExpenseRequest) GetUserID() string

func (*CreateExpenseRequest) GetValue

func (m *CreateExpenseRequest) GetValue() float32

func (*CreateExpenseRequest) ProtoMessage

func (*CreateExpenseRequest) ProtoMessage()

func (*CreateExpenseRequest) Reset

func (m *CreateExpenseRequest) Reset()

func (*CreateExpenseRequest) String

func (m *CreateExpenseRequest) String() string

type EmptyResponse

type EmptyResponse struct {
}

func (*EmptyResponse) Descriptor

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

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset

func (m *EmptyResponse) Reset()

func (*EmptyResponse) String

func (m *EmptyResponse) String() string

type ExpenseIDRequest

type ExpenseIDRequest struct {
	ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}

func (*ExpenseIDRequest) Descriptor

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

func (*ExpenseIDRequest) GetID

func (m *ExpenseIDRequest) GetID() string

func (*ExpenseIDRequest) ProtoMessage

func (*ExpenseIDRequest) ProtoMessage()

func (*ExpenseIDRequest) Reset

func (m *ExpenseIDRequest) Reset()

func (*ExpenseIDRequest) String

func (m *ExpenseIDRequest) String() string

type ExpenseResponse

type ExpenseResponse struct {
	ID         string  `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Date       int64   `protobuf:"varint,2,opt,name=Date" json:"Date,omitempty"`
	Value      float32 `protobuf:"fixed32,3,opt,name=Value" json:"Value,omitempty"`
	CategoryID string  `protobuf:"bytes,4,opt,name=CategoryID" json:"CategoryID,omitempty"`
}

func (*ExpenseResponse) Descriptor

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

func (*ExpenseResponse) GetCategoryID

func (m *ExpenseResponse) GetCategoryID() string

func (*ExpenseResponse) GetDate

func (m *ExpenseResponse) GetDate() int64

func (*ExpenseResponse) GetID

func (m *ExpenseResponse) GetID() string

func (*ExpenseResponse) GetValue

func (m *ExpenseResponse) GetValue() float32

func (*ExpenseResponse) ProtoMessage

func (*ExpenseResponse) ProtoMessage()

func (*ExpenseResponse) Reset

func (m *ExpenseResponse) Reset()

func (*ExpenseResponse) String

func (m *ExpenseResponse) String() string

type ExpenseServiceClient

type ExpenseServiceClient interface {
	GetExpense(ctx context.Context, in *ExpenseIDRequest, opts ...grpc.CallOption) (*ExpenseResponse, error)
	CreateExpense(ctx context.Context, in *CreateExpenseRequest, opts ...grpc.CallOption) (*ExpenseResponse, error)
	UpdateExpense(ctx context.Context, in *UpdateExpenseRequest, opts ...grpc.CallOption) (*ExpenseResponse, error)
	RemoveExpense(ctx context.Context, in *ExpenseIDRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	GetUserExpenses(ctx context.Context, in *UserPagingRequest, opts ...grpc.CallOption) (*ExpensesResponse, error)
	GetCategory(ctx context.Context, in *CategoryIDRequest, opts ...grpc.CallOption) (*CategoryResponse, error)
	CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CategoryResponse, error)
	UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*CategoryResponse, error)
	RemoveCategory(ctx context.Context, in *CategoryIDRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	GetUserCategories(ctx context.Context, in *UserPagingRequest, opts ...grpc.CallOption) (*CategoriesResponse, error)
}

func NewExpenseServiceClient

func NewExpenseServiceClient(cc *grpc.ClientConn) ExpenseServiceClient

type ExpensesResponse

type ExpensesResponse struct {
	Expenses []*ExpenseResponse `protobuf:"bytes,1,rep,name=Expenses" json:"Expenses,omitempty"`
}

func (*ExpensesResponse) Descriptor

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

func (*ExpensesResponse) GetExpenses

func (m *ExpensesResponse) GetExpenses() []*ExpenseResponse

func (*ExpensesResponse) ProtoMessage

func (*ExpensesResponse) ProtoMessage()

func (*ExpensesResponse) Reset

func (m *ExpensesResponse) Reset()

func (*ExpensesResponse) String

func (m *ExpensesResponse) String() string

type UpdateCategoryRequest

type UpdateCategoryRequest struct {
	ID     string  `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Limit  float32 `protobuf:"fixed32,2,opt,name=Limit" json:"Limit,omitempty"`
	Name   string  `protobuf:"bytes,3,opt,name=Name" json:"Name,omitempty"`
	UserID string  `protobuf:"bytes,4,opt,name=UserID" json:"UserID,omitempty"`
}

func (*UpdateCategoryRequest) Descriptor

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

func (*UpdateCategoryRequest) GetID

func (m *UpdateCategoryRequest) GetID() string

func (*UpdateCategoryRequest) GetLimit

func (m *UpdateCategoryRequest) GetLimit() float32

func (*UpdateCategoryRequest) GetName

func (m *UpdateCategoryRequest) GetName() string

func (*UpdateCategoryRequest) GetUserID

func (m *UpdateCategoryRequest) GetUserID() string

func (*UpdateCategoryRequest) ProtoMessage

func (*UpdateCategoryRequest) ProtoMessage()

func (*UpdateCategoryRequest) Reset

func (m *UpdateCategoryRequest) Reset()

func (*UpdateCategoryRequest) String

func (m *UpdateCategoryRequest) String() string

type UpdateExpenseRequest

type UpdateExpenseRequest struct {
	ID         string  `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Date       int64   `protobuf:"varint,2,opt,name=Date" json:"Date,omitempty"`
	Value      float32 `protobuf:"fixed32,3,opt,name=Value" json:"Value,omitempty"`
	CategoryID string  `protobuf:"bytes,4,opt,name=CategoryID" json:"CategoryID,omitempty"`
	UserID     string  `protobuf:"bytes,5,opt,name=UserID" json:"UserID,omitempty"`
}

func (*UpdateExpenseRequest) Descriptor

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

func (*UpdateExpenseRequest) GetCategoryID

func (m *UpdateExpenseRequest) GetCategoryID() string

func (*UpdateExpenseRequest) GetDate

func (m *UpdateExpenseRequest) GetDate() int64

func (*UpdateExpenseRequest) GetID

func (m *UpdateExpenseRequest) GetID() string

func (*UpdateExpenseRequest) GetUserID

func (m *UpdateExpenseRequest) GetUserID() string

func (*UpdateExpenseRequest) GetValue

func (m *UpdateExpenseRequest) GetValue() float32

func (*UpdateExpenseRequest) ProtoMessage

func (*UpdateExpenseRequest) ProtoMessage()

func (*UpdateExpenseRequest) Reset

func (m *UpdateExpenseRequest) Reset()

func (*UpdateExpenseRequest) String

func (m *UpdateExpenseRequest) String() string

type UserPagingRequest

type UserPagingRequest struct {
	UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"`
	Offset int32  `protobuf:"varint,2,opt,name=Offset" json:"Offset,omitempty"`
	Limit  int32  `protobuf:"varint,3,opt,name=Limit" json:"Limit,omitempty"`
}

func (*UserPagingRequest) Descriptor

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

func (*UserPagingRequest) GetLimit

func (m *UserPagingRequest) GetLimit() int32

func (*UserPagingRequest) GetOffset

func (m *UserPagingRequest) GetOffset() int32

func (*UserPagingRequest) GetUserID

func (m *UserPagingRequest) GetUserID() string

func (*UserPagingRequest) ProtoMessage

func (*UserPagingRequest) ProtoMessage()

func (*UserPagingRequest) Reset

func (m *UserPagingRequest) Reset()

func (*UserPagingRequest) String

func (m *UserPagingRequest) String() string

Jump to

Keyboard shortcuts

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