Documentation ¶
Overview ¶
Package example is a generated protocol buffer package.
It is generated from these files:
github.com/kennyzhu/go-os/dbservice/tools/example/protos/github.com/kennyzhu/go-os/dbservice/tools/example/generated.proto
It has these top-level messages:
Category MyDuration MyTime Price Product GetAlphaTimeRequest GetDurationForLengthRequest GetDurationForLengthCtxRequest GetOmegaTimeRequest GetPhoneRequest RandomCategoryRequest RandomNumberRequest RandomNumberResponse
Index ¶
- Variables
- func NewExampleServiceServer() *exampleServiceServer
- func RandomBool() bool
- func RandomCategory() categories2.CategoryOptions
- func RandomNumber(mean, std float64) float64
- func RegisterExampleServiceHandler(s server.Server, hdlr ExampleServiceHandler, opts ...server.HandlerOption)
- func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
- type Category
- func (*Category) Descriptor() ([]byte, []int)
- func (m *Category) Marshal() (dAtA []byte, err error)
- func (m *Category) MarshalTo(dAtA []byte) (int, error)
- func (*Category) ProtoMessage()
- func (m *Category) ProtoSize() (n int)
- func (m *Category) Reset()
- func (c *Category) String() string
- func (m *Category) Unmarshal(dAtA []byte) error
- func (m *Category) XXX_DiscardUnknown()
- func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Category) XXX_Merge(src proto.Message)
- func (m *Category) XXX_Size() int
- func (m *Category) XXX_Unmarshal(b []byte) error
- type Color
- type ExampleService
- type ExampleServiceClient
- type ExampleServiceHandler
- type ExampleServiceServer
- type GetAlphaTimeRequest
- func (*GetAlphaTimeRequest) Descriptor() ([]byte, []int)
- func (m *GetAlphaTimeRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAlphaTimeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetAlphaTimeRequest) ProtoMessage()
- func (m *GetAlphaTimeRequest) ProtoSize() (n int)
- func (m *GetAlphaTimeRequest) Reset()
- func (m *GetAlphaTimeRequest) String() string
- func (m *GetAlphaTimeRequest) Unmarshal(dAtA []byte) error
- func (m *GetAlphaTimeRequest) XXX_DiscardUnknown()
- func (m *GetAlphaTimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetAlphaTimeRequest) XXX_Merge(src proto.Message)
- func (m *GetAlphaTimeRequest) XXX_Size() int
- func (m *GetAlphaTimeRequest) XXX_Unmarshal(b []byte) error
- type GetDurationForLengthCtxRequest
- func (*GetDurationForLengthCtxRequest) Descriptor() ([]byte, []int)
- func (m *GetDurationForLengthCtxRequest) GetArg1() int64
- func (m *GetDurationForLengthCtxRequest) Marshal() (dAtA []byte, err error)
- func (m *GetDurationForLengthCtxRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetDurationForLengthCtxRequest) ProtoMessage()
- func (m *GetDurationForLengthCtxRequest) ProtoSize() (n int)
- func (m *GetDurationForLengthCtxRequest) Reset()
- func (m *GetDurationForLengthCtxRequest) String() string
- func (m *GetDurationForLengthCtxRequest) Unmarshal(dAtA []byte) error
- func (m *GetDurationForLengthCtxRequest) XXX_DiscardUnknown()
- func (m *GetDurationForLengthCtxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetDurationForLengthCtxRequest) XXX_Merge(src proto.Message)
- func (m *GetDurationForLengthCtxRequest) XXX_Size() int
- func (m *GetDurationForLengthCtxRequest) XXX_Unmarshal(b []byte) error
- type GetDurationForLengthRequest
- func (*GetDurationForLengthRequest) Descriptor() ([]byte, []int)
- func (m *GetDurationForLengthRequest) GetArg1() int64
- func (m *GetDurationForLengthRequest) Marshal() (dAtA []byte, err error)
- func (m *GetDurationForLengthRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetDurationForLengthRequest) ProtoMessage()
- func (m *GetDurationForLengthRequest) ProtoSize() (n int)
- func (m *GetDurationForLengthRequest) Reset()
- func (m *GetDurationForLengthRequest) String() string
- func (m *GetDurationForLengthRequest) Unmarshal(dAtA []byte) error
- func (m *GetDurationForLengthRequest) XXX_DiscardUnknown()
- func (m *GetDurationForLengthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetDurationForLengthRequest) XXX_Merge(src proto.Message)
- func (m *GetDurationForLengthRequest) XXX_Size() int
- func (m *GetDurationForLengthRequest) XXX_Unmarshal(b []byte) error
- type GetOmegaTimeRequest
- func (*GetOmegaTimeRequest) Descriptor() ([]byte, []int)
- func (m *GetOmegaTimeRequest) Marshal() (dAtA []byte, err error)
- func (m *GetOmegaTimeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetOmegaTimeRequest) ProtoMessage()
- func (m *GetOmegaTimeRequest) ProtoSize() (n int)
- func (m *GetOmegaTimeRequest) Reset()
- func (m *GetOmegaTimeRequest) String() string
- func (m *GetOmegaTimeRequest) Unmarshal(dAtA []byte) error
- func (m *GetOmegaTimeRequest) XXX_DiscardUnknown()
- func (m *GetOmegaTimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetOmegaTimeRequest) XXX_Merge(src proto.Message)
- func (m *GetOmegaTimeRequest) XXX_Size() int
- func (m *GetOmegaTimeRequest) XXX_Unmarshal(b []byte) error
- type GetPhoneRequest
- func (*GetPhoneRequest) Descriptor() ([]byte, []int)
- func (m *GetPhoneRequest) Marshal() (dAtA []byte, err error)
- func (m *GetPhoneRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetPhoneRequest) ProtoMessage()
- func (m *GetPhoneRequest) ProtoSize() (n int)
- func (m *GetPhoneRequest) Reset()
- func (m *GetPhoneRequest) String() string
- func (m *GetPhoneRequest) Unmarshal(dAtA []byte) error
- func (m *GetPhoneRequest) XXX_DiscardUnknown()
- func (m *GetPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetPhoneRequest) XXX_Merge(src proto.Message)
- func (m *GetPhoneRequest) XXX_Size() int
- func (m *GetPhoneRequest) XXX_Unmarshal(b []byte) error
- type Model
- type MyDuration
- func (*MyDuration) Descriptor() ([]byte, []int)
- func (m *MyDuration) Marshal() (dAtA []byte, err error)
- func (m *MyDuration) MarshalTo(dAtA []byte) (int, error)
- func (*MyDuration) ProtoMessage()
- func (m *MyDuration) ProtoSize() (n int)
- func (m *MyDuration) Reset()
- func (m *MyDuration) String() string
- func (m *MyDuration) Unmarshal(dAtA []byte) error
- func (m *MyDuration) XXX_DiscardUnknown()
- func (m *MyDuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MyDuration) XXX_Merge(src proto.Message)
- func (m *MyDuration) XXX_Size() int
- func (m *MyDuration) XXX_Unmarshal(b []byte) error
- type MyTime
- func (*MyTime) Descriptor() ([]byte, []int)
- func (m *MyTime) Marshal() (dAtA []byte, err error)
- func (m *MyTime) MarshalTo(dAtA []byte) (int, error)
- func (*MyTime) ProtoMessage()
- func (m *MyTime) ProtoSize() (n int)
- func (m *MyTime) Reset()
- func (m *MyTime) String() string
- func (m *MyTime) Unmarshal(dAtA []byte) error
- func (m *MyTime) XXX_DiscardUnknown()
- func (m *MyTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MyTime) XXX_Merge(src proto.Message)
- func (m *MyTime) XXX_Size() int
- func (m *MyTime) XXX_Unmarshal(b []byte) error
- type Price
- func (*Price) Descriptor() ([]byte, []int)
- func (m *Price) Marshal() (dAtA []byte, err error)
- func (m *Price) MarshalTo(dAtA []byte) (int, error)
- func (*Price) ProtoMessage()
- func (m *Price) ProtoSize() (n int)
- func (m *Price) Reset()
- func (m *Price) String() string
- func (m *Price) Unmarshal(dAtA []byte) error
- func (m *Price) XXX_DiscardUnknown()
- func (m *Price) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Price) XXX_Merge(src proto.Message)
- func (m *Price) XXX_Size() int
- func (m *Price) XXX_Unmarshal(b []byte) error
- type Prices
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) Marshal() (dAtA []byte, err error)
- func (m *Product) MarshalTo(dAtA []byte) (int, error)
- func (*Product) ProtoMessage()
- func (m *Product) ProtoSize() (n int)
- func (m *Product) Reset()
- func (m *Product) String() string
- func (m *Product) Unmarshal(dAtA []byte) error
- func (m *Product) XXX_DiscardUnknown()
- func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Product) XXX_Merge(src proto.Message)
- func (m *Product) XXX_Size() int
- func (m *Product) XXX_Unmarshal(b []byte) error
- type RandomCategoryRequest
- func (*RandomCategoryRequest) Descriptor() ([]byte, []int)
- func (m *RandomCategoryRequest) Marshal() (dAtA []byte, err error)
- func (m *RandomCategoryRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RandomCategoryRequest) ProtoMessage()
- func (m *RandomCategoryRequest) ProtoSize() (n int)
- func (m *RandomCategoryRequest) Reset()
- func (m *RandomCategoryRequest) String() string
- func (m *RandomCategoryRequest) Unmarshal(dAtA []byte) error
- func (m *RandomCategoryRequest) XXX_DiscardUnknown()
- func (m *RandomCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RandomCategoryRequest) XXX_Merge(src proto.Message)
- func (m *RandomCategoryRequest) XXX_Size() int
- func (m *RandomCategoryRequest) XXX_Unmarshal(b []byte) error
- type RandomNumberRequest
- func (*RandomNumberRequest) Descriptor() ([]byte, []int)
- func (m *RandomNumberRequest) GetArg1() float64
- func (m *RandomNumberRequest) GetArg2() float64
- func (m *RandomNumberRequest) Marshal() (dAtA []byte, err error)
- func (m *RandomNumberRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RandomNumberRequest) ProtoMessage()
- func (m *RandomNumberRequest) ProtoSize() (n int)
- func (m *RandomNumberRequest) Reset()
- func (m *RandomNumberRequest) String() string
- func (m *RandomNumberRequest) Unmarshal(dAtA []byte) error
- func (m *RandomNumberRequest) XXX_DiscardUnknown()
- func (m *RandomNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RandomNumberRequest) XXX_Merge(src proto.Message)
- func (m *RandomNumberRequest) XXX_Size() int
- func (m *RandomNumberRequest) XXX_Unmarshal(b []byte) error
- type RandomNumberResponse
- func (*RandomNumberResponse) Descriptor() ([]byte, []int)
- func (m *RandomNumberResponse) GetResult1() float64
- func (m *RandomNumberResponse) Marshal() (dAtA []byte, err error)
- func (m *RandomNumberResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RandomNumberResponse) ProtoMessage()
- func (m *RandomNumberResponse) ProtoSize() (n int)
- func (m *RandomNumberResponse) Reset()
- func (m *RandomNumberResponse) String() string
- func (m *RandomNumberResponse) Unmarshal(dAtA []byte) error
- func (m *RandomNumberResponse) XXX_DiscardUnknown()
- func (m *RandomNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RandomNumberResponse) XXX_Merge(src proto.Message)
- func (m *RandomNumberResponse) XXX_Size() int
- func (m *RandomNumberResponse) XXX_Unmarshal(b []byte) error
- type Tags
- type Type
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
View Source
var Type_name = map[int32]string{
0: "PUBLIC",
1: "PRIVATE",
2: "CUSTOM",
}
Type will be transformed into an enum.
View Source
var Type_value = map[string]int32{
"PUBLIC": 0,
"PRIVATE": 1,
"CUSTOM": 2,
}
Functions ¶
func NewExampleServiceServer ¶
func NewExampleServiceServer() *exampleServiceServer
func RandomBool ¶
func RandomBool() bool
func RandomCategory ¶
func RandomCategory() categories2.CategoryOptions
func RandomNumber ¶
func RegisterExampleServiceHandler ¶
func RegisterExampleServiceHandler(s server.Server, hdlr ExampleServiceHandler, opts ...server.HandlerOption)
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
Types ¶
type Category ¶
type Category struct { Model Name string Type Type Color Color Options categories2.CategoryOptions }
func (*Category) Descriptor ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) XXX_DiscardUnknown ¶
func (m *Category) XXX_DiscardUnknown()
func (*Category) XXX_Marshal ¶
func (*Category) XXX_Unmarshal ¶
type Color ¶
type Color string
Color does not have proteus:generate in a comment, so all fields of type Color will be treated as just string, not as an enum.
type ExampleService ¶
type ExampleService interface { GetAlphaTime(ctx context.Context, in *GetAlphaTimeRequest, opts ...client.CallOption) (*MyTime, error) GetDurationForLength(ctx context.Context, in *GetDurationForLengthRequest, opts ...client.CallOption) (*MyDuration, error) GetDurationForLengthCtx(ctx context.Context, in *GetDurationForLengthCtxRequest, opts ...client.CallOption) (*MyDuration, error) GetOmegaTime(ctx context.Context, in *GetOmegaTimeRequest, opts ...client.CallOption) (*MyTime, error) GetPhone(ctx context.Context, in *GetPhoneRequest, opts ...client.CallOption) (*Product, error) RandomCategory(ctx context.Context, in *RandomCategoryRequest, opts ...client.CallOption) (*categories.CategoryOptions, error) RandomNumber(ctx context.Context, in *RandomNumberRequest, opts ...client.CallOption) (*RandomNumberResponse, error) }
func NewExampleService ¶
func NewExampleService(name string, c client.Client) ExampleService
type ExampleServiceClient ¶
type ExampleServiceClient interface { GetAlphaTime(ctx context.Context, in *GetAlphaTimeRequest, opts ...grpc.CallOption) (*MyTime, error) GetDurationForLength(ctx context.Context, in *GetDurationForLengthRequest, opts ...grpc.CallOption) (*MyDuration, error) GetDurationForLengthCtx(ctx context.Context, in *GetDurationForLengthCtxRequest, opts ...grpc.CallOption) (*MyDuration, error) GetOmegaTime(ctx context.Context, in *GetOmegaTimeRequest, opts ...grpc.CallOption) (*MyTime, error) GetPhone(ctx context.Context, in *GetPhoneRequest, opts ...grpc.CallOption) (*Product, error) RandomCategory(ctx context.Context, in *RandomCategoryRequest, opts ...grpc.CallOption) (*categories2.CategoryOptions, error) RandomNumber(ctx context.Context, in *RandomNumberRequest, opts ...grpc.CallOption) (*RandomNumberResponse, error) }
ExampleServiceClient is the client API for ExampleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExampleServiceClient ¶
func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient
type ExampleServiceHandler ¶
type ExampleServiceHandler interface { GetAlphaTime(context.Context, *GetAlphaTimeRequest, *MyTime) error GetDurationForLength(context.Context, *GetDurationForLengthRequest, *MyDuration) error GetDurationForLengthCtx(context.Context, *GetDurationForLengthCtxRequest, *MyDuration) error GetOmegaTime(context.Context, *GetOmegaTimeRequest, *MyTime) error GetPhone(context.Context, *GetPhoneRequest, *Product) error RandomCategory(context.Context, *RandomCategoryRequest, *categories.CategoryOptions) error RandomNumber(context.Context, *RandomNumberRequest, *RandomNumberResponse) error }
type ExampleServiceServer ¶
type ExampleServiceServer interface { GetAlphaTime(context.Context, *GetAlphaTimeRequest) (*MyTime, error) GetDurationForLength(context.Context, *GetDurationForLengthRequest) (*MyDuration, error) GetDurationForLengthCtx(context.Context, *GetDurationForLengthCtxRequest) (*MyDuration, error) GetOmegaTime(context.Context, *GetOmegaTimeRequest) (*MyTime, error) GetPhone(context.Context, *GetPhoneRequest) (*Product, error) RandomCategory(context.Context, *RandomCategoryRequest) (*categories2.CategoryOptions, error) RandomNumber(context.Context, *RandomNumberRequest) (*RandomNumberResponse, error) }
ExampleServiceServer is the server API for ExampleService service.
type GetAlphaTimeRequest ¶
type GetAlphaTimeRequest struct { }
func (*GetAlphaTimeRequest) Descriptor ¶
func (*GetAlphaTimeRequest) Descriptor() ([]byte, []int)
func (*GetAlphaTimeRequest) Marshal ¶
func (m *GetAlphaTimeRequest) Marshal() (dAtA []byte, err error)
func (*GetAlphaTimeRequest) MarshalTo ¶
func (m *GetAlphaTimeRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAlphaTimeRequest) ProtoMessage ¶
func (*GetAlphaTimeRequest) ProtoMessage()
func (*GetAlphaTimeRequest) ProtoSize ¶
func (m *GetAlphaTimeRequest) ProtoSize() (n int)
func (*GetAlphaTimeRequest) Reset ¶
func (m *GetAlphaTimeRequest) Reset()
func (*GetAlphaTimeRequest) String ¶
func (m *GetAlphaTimeRequest) String() string
func (*GetAlphaTimeRequest) Unmarshal ¶
func (m *GetAlphaTimeRequest) Unmarshal(dAtA []byte) error
func (*GetAlphaTimeRequest) XXX_DiscardUnknown ¶
func (m *GetAlphaTimeRequest) XXX_DiscardUnknown()
func (*GetAlphaTimeRequest) XXX_Marshal ¶
func (m *GetAlphaTimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAlphaTimeRequest) XXX_Merge ¶
func (dst *GetAlphaTimeRequest) XXX_Merge(src proto.Message)
func (*GetAlphaTimeRequest) XXX_Size ¶
func (m *GetAlphaTimeRequest) XXX_Size() int
func (*GetAlphaTimeRequest) XXX_Unmarshal ¶
func (m *GetAlphaTimeRequest) XXX_Unmarshal(b []byte) error
type GetDurationForLengthCtxRequest ¶
type GetDurationForLengthCtxRequest struct {
Arg1 int64 `protobuf:"varint,1,opt,name=arg1,proto3" json:"arg1,omitempty"`
}
func (*GetDurationForLengthCtxRequest) Descriptor ¶
func (*GetDurationForLengthCtxRequest) Descriptor() ([]byte, []int)
func (*GetDurationForLengthCtxRequest) GetArg1 ¶
func (m *GetDurationForLengthCtxRequest) GetArg1() int64
func (*GetDurationForLengthCtxRequest) Marshal ¶
func (m *GetDurationForLengthCtxRequest) Marshal() (dAtA []byte, err error)
func (*GetDurationForLengthCtxRequest) MarshalTo ¶
func (m *GetDurationForLengthCtxRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetDurationForLengthCtxRequest) ProtoMessage ¶
func (*GetDurationForLengthCtxRequest) ProtoMessage()
func (*GetDurationForLengthCtxRequest) ProtoSize ¶
func (m *GetDurationForLengthCtxRequest) ProtoSize() (n int)
func (*GetDurationForLengthCtxRequest) Reset ¶
func (m *GetDurationForLengthCtxRequest) Reset()
func (*GetDurationForLengthCtxRequest) String ¶
func (m *GetDurationForLengthCtxRequest) String() string
func (*GetDurationForLengthCtxRequest) Unmarshal ¶
func (m *GetDurationForLengthCtxRequest) Unmarshal(dAtA []byte) error
func (*GetDurationForLengthCtxRequest) XXX_DiscardUnknown ¶
func (m *GetDurationForLengthCtxRequest) XXX_DiscardUnknown()
func (*GetDurationForLengthCtxRequest) XXX_Marshal ¶
func (m *GetDurationForLengthCtxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDurationForLengthCtxRequest) XXX_Merge ¶
func (dst *GetDurationForLengthCtxRequest) XXX_Merge(src proto.Message)
func (*GetDurationForLengthCtxRequest) XXX_Size ¶
func (m *GetDurationForLengthCtxRequest) XXX_Size() int
func (*GetDurationForLengthCtxRequest) XXX_Unmarshal ¶
func (m *GetDurationForLengthCtxRequest) XXX_Unmarshal(b []byte) error
type GetDurationForLengthRequest ¶
type GetDurationForLengthRequest struct {
Arg1 int64 `protobuf:"varint,1,opt,name=arg1,proto3" json:"arg1,omitempty"`
}
func (*GetDurationForLengthRequest) Descriptor ¶
func (*GetDurationForLengthRequest) Descriptor() ([]byte, []int)
func (*GetDurationForLengthRequest) GetArg1 ¶
func (m *GetDurationForLengthRequest) GetArg1() int64
func (*GetDurationForLengthRequest) Marshal ¶
func (m *GetDurationForLengthRequest) Marshal() (dAtA []byte, err error)
func (*GetDurationForLengthRequest) MarshalTo ¶
func (m *GetDurationForLengthRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetDurationForLengthRequest) ProtoMessage ¶
func (*GetDurationForLengthRequest) ProtoMessage()
func (*GetDurationForLengthRequest) ProtoSize ¶
func (m *GetDurationForLengthRequest) ProtoSize() (n int)
func (*GetDurationForLengthRequest) Reset ¶
func (m *GetDurationForLengthRequest) Reset()
func (*GetDurationForLengthRequest) String ¶
func (m *GetDurationForLengthRequest) String() string
func (*GetDurationForLengthRequest) Unmarshal ¶
func (m *GetDurationForLengthRequest) Unmarshal(dAtA []byte) error
func (*GetDurationForLengthRequest) XXX_DiscardUnknown ¶
func (m *GetDurationForLengthRequest) XXX_DiscardUnknown()
func (*GetDurationForLengthRequest) XXX_Marshal ¶
func (m *GetDurationForLengthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDurationForLengthRequest) XXX_Merge ¶
func (dst *GetDurationForLengthRequest) XXX_Merge(src proto.Message)
func (*GetDurationForLengthRequest) XXX_Size ¶
func (m *GetDurationForLengthRequest) XXX_Size() int
func (*GetDurationForLengthRequest) XXX_Unmarshal ¶
func (m *GetDurationForLengthRequest) XXX_Unmarshal(b []byte) error
type GetOmegaTimeRequest ¶
type GetOmegaTimeRequest struct { }
func (*GetOmegaTimeRequest) Descriptor ¶
func (*GetOmegaTimeRequest) Descriptor() ([]byte, []int)
func (*GetOmegaTimeRequest) Marshal ¶
func (m *GetOmegaTimeRequest) Marshal() (dAtA []byte, err error)
func (*GetOmegaTimeRequest) MarshalTo ¶
func (m *GetOmegaTimeRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetOmegaTimeRequest) ProtoMessage ¶
func (*GetOmegaTimeRequest) ProtoMessage()
func (*GetOmegaTimeRequest) ProtoSize ¶
func (m *GetOmegaTimeRequest) ProtoSize() (n int)
func (*GetOmegaTimeRequest) Reset ¶
func (m *GetOmegaTimeRequest) Reset()
func (*GetOmegaTimeRequest) String ¶
func (m *GetOmegaTimeRequest) String() string
func (*GetOmegaTimeRequest) Unmarshal ¶
func (m *GetOmegaTimeRequest) Unmarshal(dAtA []byte) error
func (*GetOmegaTimeRequest) XXX_DiscardUnknown ¶
func (m *GetOmegaTimeRequest) XXX_DiscardUnknown()
func (*GetOmegaTimeRequest) XXX_Marshal ¶
func (m *GetOmegaTimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetOmegaTimeRequest) XXX_Merge ¶
func (dst *GetOmegaTimeRequest) XXX_Merge(src proto.Message)
func (*GetOmegaTimeRequest) XXX_Size ¶
func (m *GetOmegaTimeRequest) XXX_Size() int
func (*GetOmegaTimeRequest) XXX_Unmarshal ¶
func (m *GetOmegaTimeRequest) XXX_Unmarshal(b []byte) error
type GetPhoneRequest ¶
type GetPhoneRequest struct { }
func (*GetPhoneRequest) Descriptor ¶
func (*GetPhoneRequest) Descriptor() ([]byte, []int)
func (*GetPhoneRequest) Marshal ¶
func (m *GetPhoneRequest) Marshal() (dAtA []byte, err error)
func (*GetPhoneRequest) ProtoMessage ¶
func (*GetPhoneRequest) ProtoMessage()
func (*GetPhoneRequest) ProtoSize ¶
func (m *GetPhoneRequest) ProtoSize() (n int)
func (*GetPhoneRequest) Reset ¶
func (m *GetPhoneRequest) Reset()
func (*GetPhoneRequest) String ¶
func (m *GetPhoneRequest) String() string
func (*GetPhoneRequest) Unmarshal ¶
func (m *GetPhoneRequest) Unmarshal(dAtA []byte) error
func (*GetPhoneRequest) XXX_DiscardUnknown ¶
func (m *GetPhoneRequest) XXX_DiscardUnknown()
func (*GetPhoneRequest) XXX_Marshal ¶
func (m *GetPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPhoneRequest) XXX_Merge ¶
func (dst *GetPhoneRequest) XXX_Merge(src proto.Message)
func (*GetPhoneRequest) XXX_Size ¶
func (m *GetPhoneRequest) XXX_Size() int
func (*GetPhoneRequest) XXX_Unmarshal ¶
func (m *GetPhoneRequest) XXX_Unmarshal(b []byte) error
type MyDuration ¶
func GetDurationForLength ¶
func GetDurationForLength(meters int64) *MyDuration
func GetDurationForLengthCtx ¶
func GetDurationForLengthCtx(ctx context.Context, meters int64) (*MyDuration, error)
func (*MyDuration) Descriptor ¶
func (*MyDuration) Descriptor() ([]byte, []int)
func (*MyDuration) Marshal ¶
func (m *MyDuration) Marshal() (dAtA []byte, err error)
func (*MyDuration) ProtoMessage ¶
func (*MyDuration) ProtoMessage()
func (*MyDuration) ProtoSize ¶
func (m *MyDuration) ProtoSize() (n int)
func (*MyDuration) Reset ¶
func (m *MyDuration) Reset()
func (*MyDuration) String ¶
func (m *MyDuration) String() string
func (*MyDuration) Unmarshal ¶
func (m *MyDuration) Unmarshal(dAtA []byte) error
func (*MyDuration) XXX_DiscardUnknown ¶
func (m *MyDuration) XXX_DiscardUnknown()
func (*MyDuration) XXX_Marshal ¶
func (m *MyDuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MyDuration) XXX_Merge ¶
func (dst *MyDuration) XXX_Merge(src proto.Message)
func (*MyDuration) XXX_Size ¶
func (m *MyDuration) XXX_Size() int
func (*MyDuration) XXX_Unmarshal ¶
func (m *MyDuration) XXX_Unmarshal(b []byte) error
type MyTime ¶
func GetAlphaTime ¶
func GetAlphaTime() MyTime
func GetOmegaTime ¶
func (*MyTime) Descriptor ¶
func (*MyTime) ProtoMessage ¶
func (*MyTime) ProtoMessage()
func (*MyTime) XXX_DiscardUnknown ¶
func (m *MyTime) XXX_DiscardUnknown()
func (*MyTime) XXX_Marshal ¶
func (*MyTime) XXX_Unmarshal ¶
type Price ¶
func (*Price) Descriptor ¶
func (*Price) ProtoMessage ¶
func (*Price) ProtoMessage()
func (*Price) XXX_DiscardUnknown ¶
func (m *Price) XXX_DiscardUnknown()
func (*Price) XXX_Marshal ¶
func (*Price) XXX_Unmarshal ¶
type Product ¶
type Product struct { Model Name string Price Prices Tags Tags CategoryID int64 PrimaryCategoryID int8 // Category will not be generated because we explicitly said so. Category Category `proteus:"-"` }
func (*Product) Descriptor ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) XXX_DiscardUnknown ¶
func (m *Product) XXX_DiscardUnknown()
func (*Product) XXX_Marshal ¶
func (*Product) XXX_Unmarshal ¶
type RandomCategoryRequest ¶
type RandomCategoryRequest struct { }
func (*RandomCategoryRequest) Descriptor ¶
func (*RandomCategoryRequest) Descriptor() ([]byte, []int)
func (*RandomCategoryRequest) Marshal ¶
func (m *RandomCategoryRequest) Marshal() (dAtA []byte, err error)
func (*RandomCategoryRequest) MarshalTo ¶
func (m *RandomCategoryRequest) MarshalTo(dAtA []byte) (int, error)
func (*RandomCategoryRequest) ProtoMessage ¶
func (*RandomCategoryRequest) ProtoMessage()
func (*RandomCategoryRequest) ProtoSize ¶
func (m *RandomCategoryRequest) ProtoSize() (n int)
func (*RandomCategoryRequest) Reset ¶
func (m *RandomCategoryRequest) Reset()
func (*RandomCategoryRequest) String ¶
func (m *RandomCategoryRequest) String() string
func (*RandomCategoryRequest) Unmarshal ¶
func (m *RandomCategoryRequest) Unmarshal(dAtA []byte) error
func (*RandomCategoryRequest) XXX_DiscardUnknown ¶
func (m *RandomCategoryRequest) XXX_DiscardUnknown()
func (*RandomCategoryRequest) XXX_Marshal ¶
func (m *RandomCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RandomCategoryRequest) XXX_Merge ¶
func (dst *RandomCategoryRequest) XXX_Merge(src proto.Message)
func (*RandomCategoryRequest) XXX_Size ¶
func (m *RandomCategoryRequest) XXX_Size() int
func (*RandomCategoryRequest) XXX_Unmarshal ¶
func (m *RandomCategoryRequest) XXX_Unmarshal(b []byte) error
type RandomNumberRequest ¶
type RandomNumberRequest struct { Arg1 float64 `protobuf:"fixed64,1,opt,name=arg1,proto3" json:"arg1,omitempty"` Arg2 float64 `protobuf:"fixed64,2,opt,name=arg2,proto3" json:"arg2,omitempty"` }
func (*RandomNumberRequest) Descriptor ¶
func (*RandomNumberRequest) Descriptor() ([]byte, []int)
func (*RandomNumberRequest) GetArg1 ¶
func (m *RandomNumberRequest) GetArg1() float64
func (*RandomNumberRequest) GetArg2 ¶
func (m *RandomNumberRequest) GetArg2() float64
func (*RandomNumberRequest) Marshal ¶
func (m *RandomNumberRequest) Marshal() (dAtA []byte, err error)
func (*RandomNumberRequest) MarshalTo ¶
func (m *RandomNumberRequest) MarshalTo(dAtA []byte) (int, error)
func (*RandomNumberRequest) ProtoMessage ¶
func (*RandomNumberRequest) ProtoMessage()
func (*RandomNumberRequest) ProtoSize ¶
func (m *RandomNumberRequest) ProtoSize() (n int)
func (*RandomNumberRequest) Reset ¶
func (m *RandomNumberRequest) Reset()
func (*RandomNumberRequest) String ¶
func (m *RandomNumberRequest) String() string
func (*RandomNumberRequest) Unmarshal ¶
func (m *RandomNumberRequest) Unmarshal(dAtA []byte) error
func (*RandomNumberRequest) XXX_DiscardUnknown ¶
func (m *RandomNumberRequest) XXX_DiscardUnknown()
func (*RandomNumberRequest) XXX_Marshal ¶
func (m *RandomNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RandomNumberRequest) XXX_Merge ¶
func (dst *RandomNumberRequest) XXX_Merge(src proto.Message)
func (*RandomNumberRequest) XXX_Size ¶
func (m *RandomNumberRequest) XXX_Size() int
func (*RandomNumberRequest) XXX_Unmarshal ¶
func (m *RandomNumberRequest) XXX_Unmarshal(b []byte) error
type RandomNumberResponse ¶
type RandomNumberResponse struct {
Result1 float64 `protobuf:"fixed64,1,opt,name=result1,proto3" json:"result1,omitempty"`
}
func (*RandomNumberResponse) Descriptor ¶
func (*RandomNumberResponse) Descriptor() ([]byte, []int)
func (*RandomNumberResponse) GetResult1 ¶
func (m *RandomNumberResponse) GetResult1() float64
func (*RandomNumberResponse) Marshal ¶
func (m *RandomNumberResponse) Marshal() (dAtA []byte, err error)
func (*RandomNumberResponse) MarshalTo ¶
func (m *RandomNumberResponse) MarshalTo(dAtA []byte) (int, error)
func (*RandomNumberResponse) ProtoMessage ¶
func (*RandomNumberResponse) ProtoMessage()
func (*RandomNumberResponse) ProtoSize ¶
func (m *RandomNumberResponse) ProtoSize() (n int)
func (*RandomNumberResponse) Reset ¶
func (m *RandomNumberResponse) Reset()
func (*RandomNumberResponse) String ¶
func (m *RandomNumberResponse) String() string
func (*RandomNumberResponse) Unmarshal ¶
func (m *RandomNumberResponse) Unmarshal(dAtA []byte) error
func (*RandomNumberResponse) XXX_DiscardUnknown ¶
func (m *RandomNumberResponse) XXX_DiscardUnknown()
func (*RandomNumberResponse) XXX_Marshal ¶
func (m *RandomNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RandomNumberResponse) XXX_Merge ¶
func (dst *RandomNumberResponse) XXX_Merge(src proto.Message)
func (*RandomNumberResponse) XXX_Size ¶
func (m *RandomNumberResponse) XXX_Size() int
func (*RandomNumberResponse) XXX_Unmarshal ¶
func (m *RandomNumberResponse) XXX_Unmarshal(b []byte) error
Directories ¶
Path | Synopsis |
---|---|
@Time : 2018/10/10 16:41 @Author : kenny zhu @File : main.go @Software: GoLand @Others:
|
@Time : 2018/10/10 16:41 @Author : kenny zhu @File : main.go @Software: GoLand @Others: |
Click to show internal directories.
Click to hide internal directories.