github.com/cloudwego/kitex@v0.9.0/internal/client/remote_option_windows.go (about) 1 //go:build windows 2 // +build windows 3 4 /* 5 * Copyright 2022 CloudWeGo Authors 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20 // Package client defines the Options about remote transport of client. 21 package client 22 23 import ( 24 "github.com/cloudwego/kitex/pkg/remote" 25 "github.com/cloudwego/kitex/pkg/remote/codec" 26 "github.com/cloudwego/kitex/pkg/remote/trans/gonet" 27 ) 28 29 func newClientRemoteOption() *remote.ClientOption { 30 return &remote.ClientOption{ 31 CliHandlerFactory: gonet.NewCliTransHandlerFactory(), 32 Dialer: gonet.NewDialer(), 33 Codec: codec.NewDefaultCodec(), 34 } 35 }