tax_service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tax_service is a generated protocol buffer package.

It is generated from these files:

tax_service.proto

It has these top-level messages:

GeoIdentity
TaxRate
GetRatesRequest
GetRatesResponse
DeleteRateResponse
DeleteRateRequest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTaxServiceHandler

func RegisterTaxServiceHandler(s server.Server, hdlr TaxServiceHandler, opts ...server.HandlerOption) error

Types

type DeleteRateRequest

type DeleteRateRequest struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRateRequest) Descriptor

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

func (*DeleteRateRequest) GetId

func (m *DeleteRateRequest) GetId() uint32

func (*DeleteRateRequest) ProtoMessage

func (*DeleteRateRequest) ProtoMessage()

func (*DeleteRateRequest) Reset

func (m *DeleteRateRequest) Reset()

func (*DeleteRateRequest) String

func (m *DeleteRateRequest) String() string

func (*DeleteRateRequest) XXX_DiscardUnknown

func (m *DeleteRateRequest) XXX_DiscardUnknown()

func (*DeleteRateRequest) XXX_Marshal

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

func (*DeleteRateRequest) XXX_Merge

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

func (*DeleteRateRequest) XXX_Size

func (m *DeleteRateRequest) XXX_Size() int

func (*DeleteRateRequest) XXX_Unmarshal

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

type DeleteRateResponse

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

func (*DeleteRateResponse) Descriptor

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

func (*DeleteRateResponse) ProtoMessage

func (*DeleteRateResponse) ProtoMessage()

func (*DeleteRateResponse) Reset

func (m *DeleteRateResponse) Reset()

func (*DeleteRateResponse) String

func (m *DeleteRateResponse) String() string

func (*DeleteRateResponse) XXX_DiscardUnknown

func (m *DeleteRateResponse) XXX_DiscardUnknown()

func (*DeleteRateResponse) XXX_Marshal

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

func (*DeleteRateResponse) XXX_Merge

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

func (*DeleteRateResponse) XXX_Size

func (m *DeleteRateResponse) XXX_Size() int

func (*DeleteRateResponse) XXX_Unmarshal

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

type GeoIdentity

type GeoIdentity struct {
	// @inject_tag: json:"zip"
	Zip string `protobuf:"bytes,1,opt,name=zip,proto3" json:"zip,omitempty"`
	// @inject_tag: json:"country"
	Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	// @inject_tag: json:"city,omitempty"
	City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
	// @inject_tag: json:"state,omitempty"
	State                string   `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GeoIdentity) Descriptor

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

func (*GeoIdentity) GetCity

func (m *GeoIdentity) GetCity() string

func (*GeoIdentity) GetCountry

func (m *GeoIdentity) GetCountry() string

func (*GeoIdentity) GetState

func (m *GeoIdentity) GetState() string

func (*GeoIdentity) GetZip

func (m *GeoIdentity) GetZip() string

func (*GeoIdentity) ProtoMessage

func (*GeoIdentity) ProtoMessage()

func (*GeoIdentity) Reset

func (m *GeoIdentity) Reset()

func (*GeoIdentity) String

func (m *GeoIdentity) String() string

func (*GeoIdentity) XXX_DiscardUnknown

func (m *GeoIdentity) XXX_DiscardUnknown()

func (*GeoIdentity) XXX_Marshal

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

func (*GeoIdentity) XXX_Merge

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

func (*GeoIdentity) XXX_Size

func (m *GeoIdentity) XXX_Size() int

func (*GeoIdentity) XXX_Unmarshal

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

type GetRatesRequest

type GetRatesRequest struct {
	// @inject_tag: json:"zip"
	Zip string `protobuf:"bytes,1,opt,name=zip,proto3" json:"zip,omitempty"`
	// @inject_tag: json:"country"
	Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	// @inject_tag: json:"city,omitempty"
	City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
	// @inject_tag: json:"state,omitempty"
	State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	// @inject_tag: json:"limit,omitempty"
	Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	// @inject_tag: json:"offset,omitempty"
	Offset               int32    `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRatesRequest) Descriptor

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

func (*GetRatesRequest) GetCity

func (m *GetRatesRequest) GetCity() string

func (*GetRatesRequest) GetCountry

func (m *GetRatesRequest) GetCountry() string

func (*GetRatesRequest) GetLimit

func (m *GetRatesRequest) GetLimit() int32

func (*GetRatesRequest) GetOffset

func (m *GetRatesRequest) GetOffset() int32

func (*GetRatesRequest) GetState

func (m *GetRatesRequest) GetState() string

func (*GetRatesRequest) GetZip

func (m *GetRatesRequest) GetZip() string

func (*GetRatesRequest) ProtoMessage

func (*GetRatesRequest) ProtoMessage()

func (*GetRatesRequest) Reset

func (m *GetRatesRequest) Reset()

func (*GetRatesRequest) String

func (m *GetRatesRequest) String() string

func (*GetRatesRequest) XXX_DiscardUnknown

func (m *GetRatesRequest) XXX_DiscardUnknown()

func (*GetRatesRequest) XXX_Marshal

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

func (*GetRatesRequest) XXX_Merge

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

func (*GetRatesRequest) XXX_Size

func (m *GetRatesRequest) XXX_Size() int

func (*GetRatesRequest) XXX_Unmarshal

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

type GetRatesResponse

type GetRatesResponse struct {
	// @inject_tag: json:"rates"
	Rates                []*TaxRate `protobuf:"bytes,1,rep,name=rates,proto3" json:"rates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GetRatesResponse) Descriptor

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

func (*GetRatesResponse) GetRates

func (m *GetRatesResponse) GetRates() []*TaxRate

func (*GetRatesResponse) ProtoMessage

func (*GetRatesResponse) ProtoMessage()

func (*GetRatesResponse) Reset

func (m *GetRatesResponse) Reset()

func (*GetRatesResponse) String

func (m *GetRatesResponse) String() string

func (*GetRatesResponse) XXX_DiscardUnknown

func (m *GetRatesResponse) XXX_DiscardUnknown()

func (*GetRatesResponse) XXX_Marshal

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

func (*GetRatesResponse) XXX_Merge

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

func (*GetRatesResponse) XXX_Size

func (m *GetRatesResponse) XXX_Size() int

func (*GetRatesResponse) XXX_Unmarshal

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

type TaxRate

type TaxRate struct {
	// @inject_tag: json:"id"
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// @inject_tag: json:"zip"
	Zip string `protobuf:"bytes,2,opt,name=zip,proto3" json:"zip,omitempty"`
	// @inject_tag: json:"country"
	Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	// @inject_tag: json:"city,omitempty"
	City string `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"`
	// @inject_tag: gorm:"type:varchar(2)"
	State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	// @inject_tag: json:"rate"
	Rate                 float64  `protobuf:"fixed64,6,opt,name=rate,proto3" json:"rate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TaxRate) Descriptor

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

func (*TaxRate) GetCity

func (m *TaxRate) GetCity() string

func (*TaxRate) GetCountry

func (m *TaxRate) GetCountry() string

func (*TaxRate) GetId

func (m *TaxRate) GetId() uint32

func (*TaxRate) GetRate

func (m *TaxRate) GetRate() float64

func (*TaxRate) GetState

func (m *TaxRate) GetState() string

func (*TaxRate) GetZip

func (m *TaxRate) GetZip() string

func (*TaxRate) ProtoMessage

func (*TaxRate) ProtoMessage()

func (*TaxRate) Reset

func (m *TaxRate) Reset()

func (*TaxRate) String

func (m *TaxRate) String() string

func (*TaxRate) XXX_DiscardUnknown

func (m *TaxRate) XXX_DiscardUnknown()

func (*TaxRate) XXX_Marshal

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

func (*TaxRate) XXX_Merge

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

func (*TaxRate) XXX_Size

func (m *TaxRate) XXX_Size() int

func (*TaxRate) XXX_Unmarshal

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

type TaxService

type TaxService interface {
	GetRate(ctx context.Context, in *GeoIdentity, opts ...client.CallOption) (*TaxRate, error)
	GetRates(ctx context.Context, in *GetRatesRequest, opts ...client.CallOption) (*GetRatesResponse, error)
	CreateOrUpdate(ctx context.Context, in *TaxRate, opts ...client.CallOption) (*TaxRate, error)
	DeleteRateById(ctx context.Context, in *DeleteRateRequest, opts ...client.CallOption) (*DeleteRateResponse, error)
}

func NewTaxService

func NewTaxService(name string, c client.Client) TaxService

type TaxServiceHandler

type TaxServiceHandler interface {
	GetRate(context.Context, *GeoIdentity, *TaxRate) error
	GetRates(context.Context, *GetRatesRequest, *GetRatesResponse) error
	CreateOrUpdate(context.Context, *TaxRate, *TaxRate) error
	DeleteRateById(context.Context, *DeleteRateRequest, *DeleteRateResponse) error
}

Jump to

Keyboard shortcuts

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