initialization

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 {
	InitDatabase(ctx context.Context, in *InitDatabaseRequest) (*types.Empty, error)
	InitObjects(ctx context.Context, in *InitObjectsRequest) (*types.Empty, error)
	InitRelations(ctx context.Context, in *InitRelationsRequest) (*types.Empty, error)
}

Client is the client API for initialization 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 InitDatabaseRequest

type InitDatabaseRequest struct {
	//
	//org
	Org                  int32    `protobuf:"varint,1,opt,name=org,proto3" json:"org" form:"org"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

InitDatabase请求

func (*InitDatabaseRequest) Descriptor

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

func (*InitDatabaseRequest) GetOrg

func (m *InitDatabaseRequest) GetOrg() int32

func (*InitDatabaseRequest) ProtoMessage

func (*InitDatabaseRequest) ProtoMessage()

func (*InitDatabaseRequest) Reset

func (m *InitDatabaseRequest) Reset()

func (*InitDatabaseRequest) String

func (m *InitDatabaseRequest) String() string

func (*InitDatabaseRequest) Validate

func (this *InitDatabaseRequest) Validate() error

func (*InitDatabaseRequest) XXX_DiscardUnknown

func (m *InitDatabaseRequest) XXX_DiscardUnknown()

func (*InitDatabaseRequest) XXX_Marshal

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

func (*InitDatabaseRequest) XXX_Merge

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

func (*InitDatabaseRequest) XXX_Size

func (m *InitDatabaseRequest) XXX_Size() int

func (*InitDatabaseRequest) XXX_Unmarshal

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

type InitDatabaseResponseWrapper

type InitDatabaseResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

InitDatabaseApi返回

func (*InitDatabaseResponseWrapper) Descriptor

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

func (*InitDatabaseResponseWrapper) GetCode

func (m *InitDatabaseResponseWrapper) GetCode() int32

func (*InitDatabaseResponseWrapper) GetCodeExplain

func (m *InitDatabaseResponseWrapper) GetCodeExplain() string

func (*InitDatabaseResponseWrapper) GetData

func (m *InitDatabaseResponseWrapper) GetData() *types.Empty

func (*InitDatabaseResponseWrapper) GetError

func (m *InitDatabaseResponseWrapper) GetError() string

func (*InitDatabaseResponseWrapper) ProtoMessage

func (*InitDatabaseResponseWrapper) ProtoMessage()

func (*InitDatabaseResponseWrapper) Reset

func (m *InitDatabaseResponseWrapper) Reset()

func (*InitDatabaseResponseWrapper) String

func (m *InitDatabaseResponseWrapper) String() string

func (*InitDatabaseResponseWrapper) Validate

func (this *InitDatabaseResponseWrapper) Validate() error

func (*InitDatabaseResponseWrapper) XXX_DiscardUnknown

func (m *InitDatabaseResponseWrapper) XXX_DiscardUnknown()

func (*InitDatabaseResponseWrapper) XXX_Marshal

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

func (*InitDatabaseResponseWrapper) XXX_Merge

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

func (*InitDatabaseResponseWrapper) XXX_Size

func (m *InitDatabaseResponseWrapper) XXX_Size() int

func (*InitDatabaseResponseWrapper) XXX_Unmarshal

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

type InitObjectsRequest

type InitObjectsRequest struct {
	//
	//org
	Org                  int32    `protobuf:"varint,1,opt,name=org,proto3" json:"org" form:"org"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

InitObjects请求

func (*InitObjectsRequest) Descriptor

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

func (*InitObjectsRequest) GetOrg

func (m *InitObjectsRequest) GetOrg() int32

func (*InitObjectsRequest) ProtoMessage

func (*InitObjectsRequest) ProtoMessage()

func (*InitObjectsRequest) Reset

func (m *InitObjectsRequest) Reset()

func (*InitObjectsRequest) String

func (m *InitObjectsRequest) String() string

func (*InitObjectsRequest) Validate

func (this *InitObjectsRequest) Validate() error

func (*InitObjectsRequest) XXX_DiscardUnknown

func (m *InitObjectsRequest) XXX_DiscardUnknown()

func (*InitObjectsRequest) XXX_Marshal

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

func (*InitObjectsRequest) XXX_Merge

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

func (*InitObjectsRequest) XXX_Size

func (m *InitObjectsRequest) XXX_Size() int

func (*InitObjectsRequest) XXX_Unmarshal

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

type InitObjectsResponseWrapper

type InitObjectsResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

InitObjectsApi返回

func (*InitObjectsResponseWrapper) Descriptor

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

func (*InitObjectsResponseWrapper) GetCode

func (m *InitObjectsResponseWrapper) GetCode() int32

func (*InitObjectsResponseWrapper) GetCodeExplain

func (m *InitObjectsResponseWrapper) GetCodeExplain() string

func (*InitObjectsResponseWrapper) GetData

func (m *InitObjectsResponseWrapper) GetData() *types.Empty

func (*InitObjectsResponseWrapper) GetError

func (m *InitObjectsResponseWrapper) GetError() string

func (*InitObjectsResponseWrapper) ProtoMessage

func (*InitObjectsResponseWrapper) ProtoMessage()

func (*InitObjectsResponseWrapper) Reset

func (m *InitObjectsResponseWrapper) Reset()

func (*InitObjectsResponseWrapper) String

func (m *InitObjectsResponseWrapper) String() string

func (*InitObjectsResponseWrapper) Validate

func (this *InitObjectsResponseWrapper) Validate() error

func (*InitObjectsResponseWrapper) XXX_DiscardUnknown

func (m *InitObjectsResponseWrapper) XXX_DiscardUnknown()

func (*InitObjectsResponseWrapper) XXX_Marshal

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

func (*InitObjectsResponseWrapper) XXX_Merge

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

func (*InitObjectsResponseWrapper) XXX_Size

func (m *InitObjectsResponseWrapper) XXX_Size() int

func (*InitObjectsResponseWrapper) XXX_Unmarshal

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

type InitRelationsRequest

type InitRelationsRequest struct {
	//
	//org
	Org                  int32    `protobuf:"varint,1,opt,name=org,proto3" json:"org" form:"org"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

InitRelations请求

func (*InitRelationsRequest) Descriptor

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

func (*InitRelationsRequest) GetOrg

func (m *InitRelationsRequest) GetOrg() int32

func (*InitRelationsRequest) ProtoMessage

func (*InitRelationsRequest) ProtoMessage()

func (*InitRelationsRequest) Reset

func (m *InitRelationsRequest) Reset()

func (*InitRelationsRequest) String

func (m *InitRelationsRequest) String() string

func (*InitRelationsRequest) Validate

func (this *InitRelationsRequest) Validate() error

func (*InitRelationsRequest) XXX_DiscardUnknown

func (m *InitRelationsRequest) XXX_DiscardUnknown()

func (*InitRelationsRequest) XXX_Marshal

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

func (*InitRelationsRequest) XXX_Merge

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

func (*InitRelationsRequest) XXX_Size

func (m *InitRelationsRequest) XXX_Size() int

func (*InitRelationsRequest) XXX_Unmarshal

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

type InitRelationsResponseWrapper

type InitRelationsResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

InitRelationsApi返回

func (*InitRelationsResponseWrapper) Descriptor

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

func (*InitRelationsResponseWrapper) GetCode

func (m *InitRelationsResponseWrapper) GetCode() int32

func (*InitRelationsResponseWrapper) GetCodeExplain

func (m *InitRelationsResponseWrapper) GetCodeExplain() string

func (*InitRelationsResponseWrapper) GetData

func (*InitRelationsResponseWrapper) GetError

func (m *InitRelationsResponseWrapper) GetError() string

func (*InitRelationsResponseWrapper) ProtoMessage

func (*InitRelationsResponseWrapper) ProtoMessage()

func (*InitRelationsResponseWrapper) Reset

func (m *InitRelationsResponseWrapper) Reset()

func (*InitRelationsResponseWrapper) String

func (*InitRelationsResponseWrapper) Validate

func (this *InitRelationsResponseWrapper) Validate() error

func (*InitRelationsResponseWrapper) XXX_DiscardUnknown

func (m *InitRelationsResponseWrapper) XXX_DiscardUnknown()

func (*InitRelationsResponseWrapper) XXX_Marshal

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

func (*InitRelationsResponseWrapper) XXX_Merge

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

func (*InitRelationsResponseWrapper) XXX_Size

func (m *InitRelationsResponseWrapper) XXX_Size() int

func (*InitRelationsResponseWrapper) XXX_Unmarshal

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

type Service

type Service interface {
	InitDatabase(context.Context, *InitDatabaseRequest) (*types.Empty, error)
	InitObjects(context.Context, *InitObjectsRequest) (*types.Empty, error)
	InitRelations(context.Context, *InitRelationsRequest) (*types.Empty, error)
}

Service is the server API for initialization service.

Jump to

Keyboard shortcuts

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