示例#1
0
func (tlsca *TLSCA) startTLSCAA(opts []grpc.ServerOption) {
	var err error

	tlsca.socka, err = net.Listen("tcp", viper.GetString("ports.tlscaA"))
	if err != nil {
		Panic.Panicln(err)
	}

	tlsca.srva = grpc.NewServer(opts...)
	pb.RegisterTLSCAAServer(tlsca.srva, &TLSCAA{tlsca})
	tlsca.srva.Serve(tlsca.socka)
}
示例#2
0
func (tlsca *TLSCA) startTLSCAA(srv *grpc.Server) {
	pb.RegisterTLSCAAServer(srv, &TLSCAA{tlsca})
}