Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type Count
- func (*Count) Descriptor() ([]byte, []int)
- func (m *Count) GetCount() int32
- func (*Count) ProtoMessage()
- func (m *Count) Reset()
- func (m *Count) String() string
- func (this *Count) Validate() error
- func (m *Count) XXX_DiscardUnknown()
- func (m *Count) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Count) XXX_Merge(src proto.Message)
- func (m *Count) XXX_Size() int
- func (m *Count) XXX_Unmarshal(b []byte) error
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)
- func (m *Instance) GetData() *types.Struct
- func (m *Instance) GetObjectId() string
- func (*Instance) ProtoMessage()
- func (m *Instance) Reset()
- func (m *Instance) String() string
- func (this *Instance) Validate() error
- func (m *Instance) XXX_DiscardUnknown()
- func (m *Instance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Instance) XXX_Merge(src proto.Message)
- func (m *Instance) XXX_Size() int
- func (m *Instance) XXX_Unmarshal(b []byte) error
- type InstanceID
- func (*InstanceID) Descriptor() ([]byte, []int)
- func (m *InstanceID) GetInstanceId() string
- func (m *InstanceID) GetVersion() int32
- func (m *InstanceID) GetXObjectId() string
- func (*InstanceID) ProtoMessage()
- func (m *InstanceID) Reset()
- func (m *InstanceID) String() string
- func (this *InstanceID) Validate() error
- func (m *InstanceID) XXX_DiscardUnknown()
- func (m *InstanceID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstanceID) XXX_Merge(src proto.Message)
- func (m *InstanceID) XXX_Size() int
- func (m *InstanceID) XXX_Unmarshal(b []byte) error
- type Service
- type SkipLimit
- func (*SkipLimit) Descriptor() ([]byte, []int)
- func (m *SkipLimit) GetLimit() int32
- func (m *SkipLimit) GetSkip() int32
- func (*SkipLimit) ProtoMessage()
- func (m *SkipLimit) Reset()
- func (m *SkipLimit) String() string
- func (this *SkipLimit) Validate() error
- func (m *SkipLimit) XXX_DiscardUnknown()
- func (m *SkipLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SkipLimit) XXX_Merge(src proto.Message)
- func (m *SkipLimit) XXX_Size() int
- func (m *SkipLimit) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface { GetInstance(ctx context.Context, in *InstanceID) (*types.Struct, error) CreateInstance(ctx context.Context, in *Instance) (*InstanceID, error) DeleteInstance(ctx context.Context, in *InstanceID) (*types.Empty, error) }
Client is the client API for instances service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type Count ¶
type Count struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Count) Descriptor ¶
func (*Count) ProtoMessage ¶
func (*Count) ProtoMessage()
func (*Count) XXX_DiscardUnknown ¶
func (m *Count) XXX_DiscardUnknown()
func (*Count) XXX_Marshal ¶
func (*Count) XXX_Unmarshal ¶
type Instance ¶
type Instance struct { ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` Data *types.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Instance) Descriptor ¶
func (*Instance) GetObjectId ¶
func (*Instance) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) XXX_DiscardUnknown ¶
func (m *Instance) XXX_DiscardUnknown()
func (*Instance) XXX_Marshal ¶
func (*Instance) XXX_Unmarshal ¶
type InstanceID ¶
type InstanceID struct { XObjectId string `protobuf:"bytes,1,opt,name=_object_id,json=ObjectId,proto3" json:"_object_id,omitempty"` InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InstanceID) Descriptor ¶
func (*InstanceID) Descriptor() ([]byte, []int)
func (*InstanceID) GetInstanceId ¶
func (m *InstanceID) GetInstanceId() string
func (*InstanceID) GetVersion ¶
func (m *InstanceID) GetVersion() int32
func (*InstanceID) GetXObjectId ¶
func (m *InstanceID) GetXObjectId() string
func (*InstanceID) ProtoMessage ¶
func (*InstanceID) ProtoMessage()
func (*InstanceID) Reset ¶
func (m *InstanceID) Reset()
func (*InstanceID) String ¶
func (m *InstanceID) String() string
func (*InstanceID) Validate ¶
func (this *InstanceID) Validate() error
func (*InstanceID) XXX_DiscardUnknown ¶
func (m *InstanceID) XXX_DiscardUnknown()
func (*InstanceID) XXX_Marshal ¶
func (m *InstanceID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstanceID) XXX_Merge ¶
func (m *InstanceID) XXX_Merge(src proto.Message)
func (*InstanceID) XXX_Size ¶
func (m *InstanceID) XXX_Size() int
func (*InstanceID) XXX_Unmarshal ¶
func (m *InstanceID) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface { GetInstance(context.Context, *InstanceID) (*types.Struct, error) CreateInstance(context.Context, *Instance) (*InstanceID, error) DeleteInstance(context.Context, *InstanceID) (*types.Empty, error) }
Service is the server API for instances service.
type SkipLimit ¶
type SkipLimit struct { Skip int32 `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SkipLimit) Descriptor ¶
func (*SkipLimit) ProtoMessage ¶
func (*SkipLimit) ProtoMessage()
func (*SkipLimit) XXX_DiscardUnknown ¶
func (m *SkipLimit) XXX_DiscardUnknown()
func (*SkipLimit) XXX_Marshal ¶
func (*SkipLimit) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.