Documentation ¶
Overview ¶
* Test用サーバーを構築するためのコード * bufconnによって他のコンテナを立てず接続Testができる
Index ¶
- func ConvertExecuteComputationRequest(in *pb_l2m.ExecuteComputationRequest, jobUUID string) *pb_m2c.ExecuteComputationRequest
- func ConvertJsonStrToFloatMatrix(data string) ([][]float64, error)
- func ConvertJsonStrToInterface(data string) (interface{}, error)
- func ConvertJsonStrToMap(data string) (map[string]interface{}, error)
- func ConvertPredictRequest(in *pb_l2m.PredictRequest) *pb_m2c.PredictRequest
- func ConvertToJsonstr(data interface{}) (string, error)
- func CreateJobuuid() (string, error)
- func CreateRandInt32Slice(sliceSize uint32) ([]int32, error)
- func EscapeInjection(in string, nptype NiqlParamType) string
- func NewLockSet() *lockSet
- type Containers
- type IpAddressCollection
- type NiqlParamType
- type Party
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertExecuteComputationRequest ¶
func ConvertExecuteComputationRequest(in *pb_l2m.ExecuteComputationRequest, jobUUID string) *pb_m2c.ExecuteComputationRequest
func ConvertJsonStrToMap ¶
func ConvertPredictRequest ¶
func ConvertPredictRequest(in *pb_l2m.PredictRequest) *pb_m2c.PredictRequest
func ConvertToJsonstr ¶
func CreateJobuuid ¶
func CreateRandInt32Slice ¶
func EscapeInjection ¶
func EscapeInjection(in string, nptype NiqlParamType) string
func NewLockSet ¶
func NewLockSet() *lockSet
Types ¶
type Containers ¶
type IpAddressCollection ¶
type IpAddressCollection struct { PartyID int NParties int Containers Containers AllowedOrigin []*url.URL }
func GetConfig ¶
func GetConfig() (IpAddressCollection, error)
TODO: errにメッセージをつけてstacktraceを返すようにする "github.com/pkg/errors"のerrors.WithMessageを使用推奨
type NiqlParamType ¶
type NiqlParamType int
const ( Select NiqlParamType = iota // Select == 0 Where // Where == 1 )
Enum
type TestServer ¶
type TestServer struct {
// contains filtered or unexported fields
}
func (*TestServer) GetConn ¶
func (s *TestServer) GetConn() *grpc.ClientConn
func (*TestServer) GetServer ¶
func (s *TestServer) GetServer() *grpc.Server
func (*TestServer) Serve ¶
func (s *TestServer) Serve()
Click to show internal directories.
Click to hide internal directories.